Add pitchfork on Rack 3.#24
Conversation
e93feaf to
8a776af
Compare
|
Is websocket support optional? I think this is the corresponding spec PR rack/rack#1954 formalizing it. I see your PR for puma at puma/puma#3399, but then it looks like it supported websockets a while ago already puma/puma#3399 |
|
It should be the same for Pitchfork... let me check the errors. |
|
Here is the response we are generating on the server: And here is how it ends up on the client: From what I can see, for some reason, the connection header is not set correctly. |
|
Unicorn/Pitchfork hardcode the connection header https://github.com/Shopify/pitchfork/blob/79ba8e9f0468829af18b46027c123f9d5bcb3dd8/lib/pitchfork/http_response.rb#L53-L58 |
|
Nice find. I guess that's the problem then. |
|
There are two options:
|
|
There is no point supporting websockets in Pitchfork or Unicorn. They entirely go against what it's built for. Pitchfork will remain a pure HTTP/1.1 server. |
|
@byroot We are talking about connection: upgrade, not websockets specifically. Websockets is just a reasonable test for that functionality. In any case, if you don't want to support it, you should delete the |
df3c408 to
4347af3
Compare
4347af3 to
2c0412a
Compare
1353780 to
9be2b9e
Compare

cc @Earlopain @byroot
Types of Changes
Contribution