diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-29 13:06:54 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-29 13:06:54 -0700 |
commit | 5097d2cf7359193b16fa31395efe69532a59b1d6 (patch) | |
tree | 5a75523b275192a73655d6a18dcfd7da1cb9d12b /TODO | |
parent | c83b5a903a076fda67c7d062da1ad6ff9337fdd1 (diff) | |
download | unicorn-5097d2cf7359193b16fa31395efe69532a59b1d6.tar.gz |
We always close the socket immediately after a successful write for two reasons: 1) To prevent error responses from being rewritten. If we throw an exception in our request/app/response chain, we'll attempt to write an HTTP 400/500 response out if the socket is open. No way to write to an open socket. 2) To uncork the socket if TCP_CORK is enabled (Linux) ASAP. This should be a tick faster than waiting to go back up the stack and close it there.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions