]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Andrew Hoying <andrew_hoying@blm.gov>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 3 Dec 2008 05:21:15 +0000 (18:21 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 3 Dec 2008 05:21:15 +0000 (18:21 +1300)
Bug 2424: filedescriptors being left unnecessary opened

src/fs/ufs/store_io_ufs.cc

index 463a7aa61d56a9c0fb8d35d53a5bb75e5caf1542..f61463531e8b3ac6b9dff7f2fc2df21941eb36a2 100644 (file)
@@ -338,7 +338,7 @@ UFSStoreState::readCompleted(const char *buf, int len, int errflag, RefCount<Rea
         callback(cbdata, read_buf, len, this);
     }
 
-    if (theFile != NULL && theFile->error())
+    if (flags.try_closing || (theFile != NULL && theFile->error()) )
         tryClosing();
 }