Mercurial > dovecot > core-2.2
changeset 16569:3fdfbabf3dcf
lib-http: If connection times out, set the stream's errno to ETIMEDOUT in case it's used.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 27 Jun 2013 20:27:57 +0300 |
parents | 110d18bf9e30 |
children | eb63569f0f73 |
files | src/lib-http/http-client-connection.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client-connection.c Thu Jun 27 20:26:50 2013 +0300 +++ b/src/lib-http/http-client-connection.c Thu Jun 27 20:27:57 2013 +0300 @@ -214,6 +214,7 @@ { unsigned int msecs = conn->client->set.request_timeout_msecs; + conn->conn.input->stream_errno = ETIMEDOUT; http_client_connection_abort_temp_error(&conn, HTTP_CLIENT_REQUEST_ERROR_TIMED_OUT, t_strdup_printf( "No response for request in %u.%03u secs",