| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: select call returns without any data
From: <centrio_at_gmail.com>
Date: Thu, 07 Jan 2010 11:27:32 +0000
From: Daniel Stenberg <daniel_at_haxx.se>
On Thu, 7 Jan 2010, centrio_at_gmail.com wrote:
> if (CONNECTIONSTATE_CONNECT == state)
#How does your program know/guess what state the handle is in?
Initially the application when receives a URL to connect to, its in Connect
> switch(ret)
#... your code can't easily know if libcurl is in "connect state" or not
As long as no data_callback is called, I assume I am in connection state.
> I have a timeout of 1 second for select call on curl FD's. For some
#That's normal and expected.
If select is returning before 1 second, (no timeout) then it mean it has
> I wanted to know why select call returns before 1 second without pulling
#Well obviosly none of the monitored sockets had traffic in the directions
If there is no traffic, then why did select return before timeout?
> The select is waiting on write_fd's also. Does sending of Get Request to
#All requests consist of parts sending and parts receiving. You have to send
> Is there Any way to know if only read_fds have been modified?
#FD_ISSET() is the macro you use to check for a specific file decsription in
But if those are handles that libcurl manages for you, you really should not
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info