From 326fb00f9c6ed055c90f4dd068be5942ddf12670 Mon Sep 17 00:00:00 2001 From: Lubos Uhliarik Date: Tue, 12 Apr 2016 00:41:38 +1200 Subject: [PATCH] Bug 2460 partial: workaround deferred reads on shutdown and restart --- src/comm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comm.cc b/src/comm.cc index 493d81d23e..f0f78ff320 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1743,7 +1743,7 @@ DeferredReadManager::popHead(CbDataListContainer &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; -- 2.47.2