Mercurial > dovecot > core-2.2
comparison src/director/director-connection.c @ 22251:dce18ed41532
director: Fix "sending handshake timed out" error to be actually logged
io was never NULL here, so it was never logged.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 31 May 2017 13:15:04 +0300 |
parents | 81a74bce2b07 |
children | 8882a5cbe76d |
comparison
equal
deleted
inserted
replaced
22250:81a74bce2b07 | 22251:dce18ed41532 |
---|---|
164 unsigned int secs = ioloop_time - conn->created; | 164 unsigned int secs = ioloop_time - conn->created; |
165 | 165 |
166 if (!conn->connected) { | 166 if (!conn->connected) { |
167 i_error("director(%s): Connect timed out (%u secs)", | 167 i_error("director(%s): Connect timed out (%u secs)", |
168 conn->name, secs); | 168 conn->name, secs); |
169 } else if (conn->io == NULL) { | |
170 i_error("director(%s): Sending handshake (%u secs)", | |
171 conn->name, secs); | |
172 } else if (!conn->me_received) { | 169 } else if (!conn->me_received) { |
173 i_error("director(%s): Handshaking ME timed out (%u secs)", | 170 i_error("director(%s): Handshaking ME timed out (%u secs)", |
171 conn->name, secs); | |
172 } else if (!conn->in) { | |
173 i_error("director(%s): Sending handshake timed out (%u secs)", | |
174 conn->name, secs); | 174 conn->name, secs); |
175 } else { | 175 } else { |
176 i_error("director(%s): Handshaking DONE timed out (%u secs)", | 176 i_error("director(%s): Handshaking DONE timed out (%u secs)", |
177 conn->name, secs); | 177 conn->name, secs); |
178 } | 178 } |