diff options
author | Michael Adam <obnox@samba.org> | 2009-10-13 13:09:00 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-01-10 02:17:37 +0100 |
commit | 12026c32dec5e496838eaee6307fd72b50b88092 (patch) | |
tree | e16c703d28a6fe7842588aefc3ffb0eeae07f7c5 /src/acl.c | |
parent | 6c9a647576c935da3edc66093174eb0855b2be3d (diff) | |
download | tinyproxy-12026c32dec5e496838eaee6307fd72b50b88092.tar.gz tinyproxy-12026c32dec5e496838eaee6307fd72b50b88092.zip |
Fix bug #55: Read request entity before sending error page to client.
https://www.banu.com/bugzilla/show_bug.cgi?id=55
This is achieved by streamlining handle_connection, adding
a common cleanup-and-exit poing ("done") and a common
failure exit point ("fail") that reads any pending data
from the client fd first before trying to send back
data (error page or stats page).
The new function get_request_entity that is used here,
does not honour any content-length header. It just calls
select on the client-fd and gets any data that is there
to read.
Michael
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions