Skip to content

Commit

Permalink
fixed time-out returned without error text set
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jan 16, 2002
1 parent b3b4786 commit 5c6eddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/connect.c
Expand Up @@ -369,9 +369,11 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
/* subtract the passed time */
timeout_ms -= (long)has_passed;

if(timeout_ms < 0)
if(timeout_ms < 0) {
/* a precaution, no need to continue if time already is up */
failf(data, "Connection time-out");
return CURLE_OPERATION_TIMEOUTED;
}
}

#ifdef ENABLE_IPV6
Expand Down

0 comments on commit 5c6eddc

Please sign in to comment.