]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2460 partial: workaround deferred reads on shutdown and restart
authorLubos Uhliarik <luhliari@redhat.com>
Mon, 11 Apr 2016 12:41:38 +0000 (00:41 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 11 Apr 2016 12:41:38 +0000 (00:41 +1200)
src/comm.cc

index 493d81d23e1c87fcb861706cbfcfbe177cd9ec48..f0f78ff3202f64f19e82927c094687cdfd5bb68b 100644 (file)
@@ -1743,7 +1743,7 @@ DeferredReadManager::popHead(CbDataListContainer<DeferredRead> &deferredReads)
     //       amount of time. We must re-validate that it is active and usable.
 
     // If the connection has been closed already. Cancel this read.
-    if (!Comm::IsConnOpen(read.theRead.conn)) {
+    if (!fd_table || !Comm::IsConnOpen(read.theRead.conn)) {
         if (read.closer != NULL) {
             read.closer->cancel("Connection closed before.");
             read.closer = NULL;