# HG changeset patch # User Stephan Bosch # Date 1518217049 -3600 # Node ID 3338a8e5976d622c60d870c6761150685177e5a3 # Parent 5f45d733a483770b259f53caec8d1d3359415f37 lib-http: server: Recreate connection IO after streams change. diff -r 5f45d733a483 -r 3338a8e5976d src/lib-http/http-server-connection.c --- a/src/lib-http/http-server-connection.c Fri Feb 09 23:56:55 2018 +0100 +++ b/src/lib-http/http-server-connection.c Fri Feb 09 23:57:29 2018 +0100 @@ -397,6 +397,7 @@ if (conn->server->set.debug) http_server_connection_debug(conn, "Starting SSL handshake"); + http_server_connection_input_halt(conn); if (master_service_ssl_init(master_service, &conn->conn.input, &conn->conn.output, &conn->ssl_iostream, &error) < 0) { @@ -404,6 +405,8 @@ "Couldn't initialize SSL server for %s: %s", conn->conn.name, error); return -1; } + http_server_connection_input_resume(conn); + if (ssl_iostream_handshake(conn->ssl_iostream) < 0) { http_server_connection_error(conn,"SSL handshake failed: %s", ssl_iostream_get_last_error(conn->ssl_iostream));