]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add debug info on IPC failure retries
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 22 Jan 2011 09:15:20 +0000 (22:15 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 22 Jan 2011 09:15:20 +0000 (22:15 +1300)
src/ipc/UdsOp.cc

index 873450574a8b0b667851cba9e1d675b2254379d2..878d0f50203b3874ed0ffd32204cc4e41962a363 100644 (file)
@@ -113,7 +113,7 @@ void Ipc::UdsSender::write()
 
 void Ipc::UdsSender::wrote(const CommIoCbParams& params)
 {
-    debugs(54, 5, HERE << "FD " << params.fd << " flag " << params.flag << " [" << this << ']');
+    debugs(54, 5, HERE << "FD " << params.fd << " flag " << params.flag << " retries " << retries << " [" << this << ']');
     writing = false;
     if (params.flag != COMM_OK && retries-- > 0) {
         sleep(1); // do not spend all tries at once; XXX: use an async timed event instead of blocking here; store the time when we started writing so that we do not sleep if not needed?