From 0bd2d077afbac413d52980a943cf4ac241956a7a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 29 Jul 2017 16:35:09 +0200 Subject: now: update 'now' as part of the easy handle instead of local variables ... as the mix of both passing in current time and figuring it out locally sometimes made "now" move in time in unexpected ways. Curl_timeleft() got an updated prototype. The old defines for Curl_tvnow() and Curl_tvdiff() are now removed. Renamed the conn->new member to setup_time and fixed its use somewhat. Moved the 'now' field from the SingleRequest struct within the easy handle to the struct UrlState. --- lib/vtls/gtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vtls/gtls.c') diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index d55f995e8..0a9bd01ad 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -285,7 +285,7 @@ static CURLcode handshake(struct connectdata *conn, for(;;) { /* check allowed time left */ - timeout_ms = Curl_timeleft(data, NULL, duringconnect); + timeout_ms = Curl_timeleft(data, duringconnect); if(timeout_ms < 0) { /* no need to continue if time already is up */ -- cgit v1.2.1