]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polish HttpStateData::readReply() layout to weed out bugs, step 1:
authorrousskov <>
Tue, 26 Jun 2007 06:11:08 +0000 (06:11 +0000)
committerrousskov <>
Tue, 26 Jun 2007 06:11:08 +0000 (06:11 +0000)
1996 (revision 1.8) code was setting errno to zero before calling read(2).
We no longer make system calls in HttpStateData::readReply(). Resetting
errno here is a little bit too late.

src/http.cc

index b6d6737cbf69ee5d340ce39dc58b60a3f95e4b85..0f46aa67e2533158bb011ebef79b3ce68c06f5c7 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.527 2007/06/25 22:34:24 rousskov Exp $
+ * $Id: http.cc,v 1.528 2007/06/26 00:11:08 rousskov Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -984,7 +984,6 @@ HttpStateData::readReply (size_t len, comm_err_t flag, int xerrno)
         return;
     }
 
-    errno = 0;
     /* prepare the read size for the next read (if any) */
 
     debugs(11, 5, "httpReadReply: FD " << fd << ": len " << len << ".");