diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-28 11:20:46 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-28 11:30:38 +0000 |
commit | f309cfaf70cbffd7a39208da869e47784e4cb41b (patch) | |
tree | 3ede259f73e09381fe4cd645d2f1763c1b6dcadc /lib/rainbows/dev_fd_response.rb | |
parent | d3ecf49abeda931e23023e1afb93d4c6145f559a (diff) | |
download | rainbows-f309cfaf70cbffd7a39208da869e47784e4cb41b.tar.gz |
Since TCP sockets stream, HTTP requests do not come in at well-defined boundaries and it's possible for pipelined requests to come in in a staggered form. We need to ensure our receive_data callback doesn't fire any actions at all while responding with a deferrable @body. We still need to be careful about buffering, since EM does not appear to allow temporarily disabling read events (without pausing writes), so we shutdown the read end of the socket if it reaches a maximum header size limit.
Diffstat (limited to 'lib/rainbows/dev_fd_response.rb')
0 files changed, 0 insertions, 0 deletions