Re: [bug-myserver] Re: Trouble with blocking on Socket::accept() for a
From:
ivailo ilionov
Subject:
Re: [bug-myserver] Re: Trouble with blocking on Socket::accept() for a test
Date:
Fri, 27 Mar 2009 21:51:11 +0200
Giuseppe, I thought that FIONBIO was something windows specific and didn't check more on it. In my stand-alone app, i used fcntl(), so no problems when I use it for 'Socket::setNonBlocking' too.
I'll keep in mind to check everything in the future : ), I'm not forgetting to check errno for != 11 ( Resource temporarily unavailable ).
> Hi,
> > I confirm the problem, accept must immediately return the control back. > I guess the problem depends from `ioctlsocket' inside > `Socket::setNonBlocking'. Does it work if you change this method to use
> `fcntl' instead of `ioctlsocket'?
> Giuseppe
[Prev in Thread]
Current Thread
[Next in Thread]
Re: [bug-myserver] Re: Trouble with blocking on Socket::accept() for a test,
ivailo ilionov<=