[squid-users] assertion failed: comm.cc:178: "fd_table[conn->fd].halfClosedReader != NULL"
HackXBack
hack.back at hotmail.com
Wed Apr 15 13:06:17 UTC 2015
this bug exist after changing in certificate_db.cc from flock to lockf
=== modified file 'src/ssl/certificate_db.cc'
--- src/ssl/certificate_db.cc 2014-12-03 11:58:37 +0000
+++ src/ssl/certificate_db.cc 2015-01-09 10:27:12 +0000
@@ -55,7 +55,7 @@
#if _SQUID_WINDOWS_
if (!LockFile(hFile, 0, 0, 1, 0))
#else
- if (flock(fd, LOCK_EX) != 0)
+ if (lockf(fd, F_LOCK, 0) != 0)
#endif
throw std::runtime_error("Failed to get a lock of " + filename);
}
@@ -70,7 +70,7 @@
}
#else
if (fd != -1) {
- flock(fd, LOCK_UN);
+ lockf(fd, F_ULOCK, 0);
close(fd);
fd = -1;
}
after stopping ssl_crtd corruption i got now assertion failed every 10 min..
!!!
--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/assertion-failed-comm-cc-178-fd-table-conn-fd-halfClosedReader-NULL-tp4670726p4670756.html
Sent from the Squid - Users mailing list archive at Nabble.com.
More information about the squid-users
mailing list