]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
call io completion handlers with COMM_ERR_CLOSING when we're actually
authoradrian <>
Tue, 15 Oct 2002 06:49:10 +0000 (06:49 +0000)
committeradrian <>
Tue, 15 Oct 2002 06:49:10 +0000 (06:49 +0000)
comm_close()ing an fd.

src/comm.cc

index 6095a6812c02178b4f58797b50cac9f1cd20cbe3..575693157331594b72a11fbc6571e25bf7aa93f0 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.337 2002/10/14 08:16:58 robertc Exp $
+ * $Id: comm.cc,v 1.338 2002/10/15 00:49:10 adrian Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -1145,7 +1145,8 @@ _comm_close(int fd, char *file, int line)
        assert(fd == cio->fd); /* just paranoid */
        dlinkDelete(&cio->h_node, &CommCallbackList);
        dlinkDelete(&cio->fd_node, &(fdc_table[cio->fd].CommCallbackList));
-
+       /* We're closing! */
+       cio->errcode = COMM_ERR_CLOSING;
        comm_call_io_callback(cio);
        memPoolFree(comm_callback_pool, cio);
     }