failed posts with Content-Length: 0

From: Doug Nazar <nazard@dont-contact.us>
Date: Thu, 17 Dec 1998 00:33:03 -0600

This has been bugging me for a little while and I finally got around to
tracking it down. When doing any POST operation, with a null body,
squid will just timeout. I'm using Mozilla/3 which squid automatically
disables proxy_keepalive for which means it fails the following test

pump.c: around line 165
    if (r->flags.proxy_keepalive && p->sent == p->cont_len) {
        pumpServerCopyComplete(p->s_fd, NULL, 0, DISK_OK, p);

and then goes on to config the request to copy data which isn't there.
When I comment that portion out

    if (/*r->flags.proxy_keepalive &&*/ p->sent == p->cont_len) {
        pumpServerCopyComplete(p->s_fd, NULL, 0, DISK_OK, p);

everything works fine. pumpServerCopyComplete() has provisions for
proxy_keepalive so I don't believe that there is any harm calling this
unilateraly when p->sent == p->cont_len (NOTE: p->sent is set to 0 the
line above).

Can anyone see anything wrong with the above?

Doug Nazar

Phone: (416) 708-1578
  Fax: (416) 708-8081
Received on Wed Dec 16 1998 - 22:28:15 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:40 MST