Please refer to ConnectionDone in url.c

conn_candidate is picked up from the cache (data->state.conn_cache, which is 
the same as the multi object's conn_cache)

conn_candidate->data is set to data (the easy object which just finished the 
connection)
even though conn_candidate may have been created by another easy object.

On calling Curl_disconnect, the current easy object's state is modified, even 
if conn_candidate may have nothing to do with the current easy object. 
state.authhost, state.authproxy and req.newurl are reset if the required 
conditions are met by conn_candidate, and not necessarily by conn.

--
Paras
                                          
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to