}
o_stream_nsend(output, str_data(reply), str_len(reply));
if (o_stream_uncork_flush(output) < 0 &&
- output->stream_errno != EPIPE)
+ output->stream_errno != EPIPE &&
+ output->stream_errno != ECONNRESET)
i_error("write(client) failed: %s", o_stream_get_error(output));
}
if (client_create_finish(client, &error) < 0) {
if (write_full(login_client->fd, MSG_BYE_INTERNAL_ERROR,
strlen(MSG_BYE_INTERNAL_ERROR)) < 0)
- if (errno != EAGAIN && errno != EPIPE)
+ if (errno != EAGAIN && errno != EPIPE &&
+ errno != ECONNRESET)
e_error(client->event,
"write_full(client) failed: %m");