multi: don't expire timeouts at disonnect or done
authorDaniel Stenberg <daniel@haxx.se>
Tue, 28 Sep 2010 21:17:34 +0000 (23:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Sep 2010 21:49:32 +0000 (23:49 +0200)
commited4eecc05e0cce36d8ce4ac9466376ca5fcfcba2
treea21203361f11635b72f965d7d2f2d6a6892ecfe5
parent7e1a45e224e574d32d255b915917ed3cb3390d4b
multi: don't expire timeouts at disonnect or done

The functions Curl_disconnect() and Curl_done() are both used within the
scope of a single request so they cannot be allowed to use
Curl_expire(... 0) to kill all timeouts as there are some timeouts that
are set before a request that are supposed to remain until the request
is done.

The timeouts are now instead cleared at curl_easy_cleanup() and when the
multi state machine changes a handle to the complete state.
lib/multi.c
lib/url.c