From: Amos Jeffries Date: Sat, 22 Jan 2011 09:15:20 +0000 (+1300) Subject: Add debug info on IPC failure retries X-Git-Tag: take03^2~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b889a83d4ce715c036e7d970413ca58c97d77b7f;p=thirdparty%2Fsquid.git Add debug info on IPC failure retries --- diff --git a/src/ipc/UdsOp.cc b/src/ipc/UdsOp.cc index 873450574a..878d0f5020 100644 --- a/src/ipc/UdsOp.cc +++ b/src/ipc/UdsOp.cc @@ -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?