Before, the connection was not guaranteed to be fully initialized after the SSL
handshake. The problem would occur when the handshake finished while writing the
SSL output stream.
i_assert(ret == 0);
return;
}
+ }
- /* ready for first request */
+ if (!conn->connect_succeeded) {
+ /* just got ready for first request */
http_client_connection_ready(conn);
}
const struct http_client_settings *set = &peer->client->set;
e_debug(conn->event, "Ready for requests");
+ i_assert(!conn->connect_succeeded);
/* connected */
conn->connected = TRUE;