Mercurial > dovecot > core-2.2
changeset 18026:69af57dcd274
lib-http: client: Removed asssert in http_client_connection_is_ready().
There is no reason why the input stream couldn't be full.
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Sun, 26 Oct 2014 18:43:57 +0200 |
parents | 583215301ba7 |
children | c7629d149d7a |
files | src/lib-http/http-client-connection.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client-connection.c Sun Oct 26 18:43:57 2014 +0200 +++ b/src/lib-http/http-client-connection.c Sun Oct 26 18:43:57 2014 +0200 @@ -176,10 +176,9 @@ /* Active ioloop is different from what we saw earlier; we may have missed a disconnection event on this connection. Verify status by reading from connection. */ - if ((ret=i_stream_read(conn->conn.input)) < 0) { + if ((ret=i_stream_read(conn->conn.input)) == -1) { int stream_errno = conn->conn.input->stream_errno; - i_assert(ret != -2); i_assert(conn->conn.input->stream_errno != 0 || conn->conn.input->eof); http_client_connection_abort_temp_error(&conn, HTTP_CLIENT_REQUEST_ERROR_CONNECTION_LOST,