Vincent, Hamish,
The following patch should fix it. Please let me know if this is the
case, as I want to release 0.9.10 as soon as possible.
(The patch is against polipo-stable-20060828, but it should apply
cleanly to 0.9.9.)
Juliusz
diff -rN -u old-polipo-stable-0.9/client.c new-polipo-stable-0.9/client.c
--- old-polipo-stable-0.9/client.c 2006-08-29 03:05:27.000000000 +0200
+++ new-polipo-stable-0.9/client.c 2006-08-29 03:05:27.000000000 +0200
@@ -161,14 +161,13 @@
if(connection->flags & CONN_SIDE_READER) {
/* We're in POST or PUT and the reader isn't done yet.
- We make sure the request is marked as failed, and
- reschedule ourselves. */
+ Wait for the read side to close the connection. */
assert(request && (connection->flags & CONN_READER));
- if(request->error_code == 0) {
- request->error_code = 500;
- request->error_message = internAtom("Error message lost");
+ if(s >= 2) {
+ pokeFdEvent(connection->fd, -EDOSHUTDOWN, POLLIN);
+ } else {
+ pokeFdEvent(connection->fd, -EDOGRACEFUL, POLLIN);
}
- httpClientDelayedFinish(connection);
return;
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]