cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: in curl multi socket,in what condition the callback function of CURLMOPT_TIMERFUNCTION will be called?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 13 Jan 2015 23:18:24 +0100 (CET)

On Wed, 14 Jan 2015, 兰天 wrote:

> 50 [2015-01-13 23:39:57.211287]
> DBG|CImgMultiDownload.cpp|443|sock_cb|socket callback: s=115 e=0x1af6c90
> what=REMOVE <- here remove the socket,why? I thought here shou be sent http
> header to server

I know far too little about your code and libcurl setup to be able to tell
why. Does the transfer fail in a strange way?

> why the callback function of multi_timer_cb called twice??

I can't tell based on this little info.

> and my second question is :In what condition ,the callback function
> multi_timer_cb will be called ?

When libcurl has deemed that there's an updated timeout period to the nearest
timeout at which time it wants to get called.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-13