/*
- * $Id: http.cc,v 1.448 2005/03/08 21:38:40 serassio Exp $
+ * $Id: http.cc,v 1.449 2005/04/03 18:53:24 serassio Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
if (!flags.keepalive)
return COMPLETE_NONPERSISTENT_MSG;
+ /*
+ * If we haven't sent the whole request then this can not be a persistent
+ * connection.
+ */
+ if (!flags.request_sent) {
+ debug(11, 1) ("httpReadReply: Request not yet fully sent \"%s %s\"\n",
+ RequestMethodStr[orig_request->method],
+ storeUrl(entry));
+ return COMPLETE_NONPERSISTENT_MSG;
+ }
+
/*
* What does the reply have to say about keep-alive?
*/
*/
commSetTimeout(fd, Config.Timeout.read, httpTimeout, httpState);
}
+
+ httpState->flags.request_sent = 1;
}
/*
/*
- * $Id: structs.h,v 1.514 2005/03/18 17:12:34 hno Exp $
+ * $Id: structs.h,v 1.515 2005/04/03 18:53:24 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
unsigned int abuse_detected:
1;
+
+unsigned int request_sent:
+ 1;
};
struct _ipcache_addrs