protocol_connect: show verbose connect and set connect time

Regression: commit b998d95b (shipped first in release 7.22.0) made the
condition always equal false that should reset the TIMER_CONNECT timer
and call the Curl_verboseconnect() function.

Reported by: "Captain Basil"
Bug: http://curl.haxx.se/mail/archive-2011-11/0035.html
This commit is contained in:
Daniel Stenberg 2011-11-21 23:36:21 +01:00
parent c532604b13
commit 7248439fec
1 changed files with 2 additions and 5 deletions

View File

@ -3345,11 +3345,8 @@ CURLcode Curl_protocol_connect(struct connectdata *conn,
return CURLE_OK;
}
if(!conn->bits.tcpconnect[FIRSTSOCKET]) {
Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */
Curl_verboseconnect(conn);
}
Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */
Curl_verboseconnect(conn);
if(!conn->bits.protoconnstart) {
if(conn->handler->connect_it) {