-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send HTTP-1.1 Responses. #31
base: master
Are you sure you want to change the base?
Conversation
* Despite not requiring the ``Host`` header or supporting keep-alives, send an HTTP/1.1 response. * This will allow custom servers to actually use some HTTP/1.1 features, such as the cache-control header, even though clients are forced to delagate keep-alive behavior to their load-balancer. * When tested behind haproxy and friends, has no impact on upstream load-balancing.
I haven't fully grokked the patch yet, but i think it should respond 1.1 only if the request in question is in 1.1. |
That's certainly not required. Here's what apache does:
|
+1 With 1.0 no chunked and friends :( |
Btw, why add Connection close? Isn't that only for 1.0? |
You have to send Connection: close if you are going to close the connection. Otherwise HTTP/1.1 is keep-alive by default and you may wind up with some pipelined requests that will get dropped when you close the connection. I didn't want to go through and implement keep-alives, because it was too much effort at this layer. In my current deployment, I push several Twiggy daemon processes to each box and have a local load balancer on the instance. The load balancer does keep-alives for me upstream. Adding real keep alive support would be a significant change. |
I am implementing sockjs port and need to use chunked encoding almost
|
Actually it doesn't look for connection, my mistake, but it doesn't remove
|
In order to support HTTP/1.1 correctly, we will need to send the On Mon, Sep 3, 2012 at 2:55 PM, Viacheslav Tykhanovskyi <
Cheers, |
@vti What is the status of your fork for SockJS? |
@dolmen usable under patched Feersum :) But I am doing some internal refactoring right now. |
Host
header or supporting keep-alives, sendHTTP/1.1 response.
such as the cache-control header, even though clients are forced to
delegate keep-alive behavior to their load-balancer.
load-balancing.