/* XXX fixme xstrerror and xerrno... */
errno = xerrno;
- if (xerrno == COMM_ERR_CLOSING)
- return;
-
debugs(50, debugLevelForError(xerrno), "TunnelStateData::Connection::error: FD " << fd() <<
": read/write failure: " << xstrerror());
{
debugs(26, 3, "tunnelWriteServer: FD " << server.fd() << ", " << len << " bytes written");
+ if(flag == COMM_ERR_CLOSING)
+ return;
+
/* Error? */
if (len < 0 || flag != COMM_OK) {
server.error(xerrno); // may call comm_close
{
debugs(26, 3, "tunnelWriteClient: FD " << client.fd() << ", " << len << " bytes written");
+ if(flag == COMM_ERR_CLOSING)
+ return;
+
/* Error? */
if (len < 0 || flag != COMM_OK) {
client.error(xerrno); // may call comm_close