------------------------------------------------------------ revno: 12614 revision-id: squid3@treenet.co.nz-20130910112859-905v69q9b6ql8o5l parent: squid3@treenet.co.nz-20130910112813-8sl24qq75ba288n3 committer: Amos Jeffries branch nick: 3.3 timestamp: Tue 2013-09-10 05:28:59 -0600 message: Show number of available filedescriptors when reserved FD changes ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20130910112859-905v69q9b6ql8o5l # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # testament_sha1: ecfad7ca9d15478469970473acca3f24479c0169 # timestamp: 2013-09-10 11:53:43 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # base_revision_id: squid3@treenet.co.nz-20130910112813-\ # 8sl24qq75ba288n3 # # Begin patch === modified file 'src/fd.cc' --- src/fd.cc 2013-09-09 07:17:19 +0000 +++ src/fd.cc 2013-09-10 11:28:59 +0000 @@ -369,6 +369,7 @@ if (Squid_MaxFD - newReserve < min(256, Squid_MaxFD / 2)) fatalf("Too few filedescriptors available in the system (%d usable of %d).\n", Squid_MaxFD - newReserve, Squid_MaxFD); - debugs(51, DBG_CRITICAL, "Reserved FD adjusted from " << RESERVED_FD << " to " << newReserve << " due to failures"); + debugs(51, DBG_CRITICAL, "Reserved FD adjusted from " << RESERVED_FD << " to " << newReserve << + " due to failures (" << (Squid_MaxFD - newReserve) << "/" << Squid_MaxFD << " file descriptors available)"); RESERVED_FD = newReserve; }