[tolj@wapme-systems.de: Re: Problem with accept?!! (was: Re: apache cygwin package hangs when MaxRequestsPerChild reached!)]
Corinna Vinschen
vinschen@redhat.com
Tue Jun 3 10:48:00 GMT 2003
On Tue, Jun 03, 2003 at 11:44:13AM +0200, Thomas Pfaff wrote:
> i took a heart and did some testing.
>
> 1. You must pass the winsock error between the threads.
> 2. I changed the connect stuff to nonblocking and use select to wait.
> This should make sure that the connect will be continued in background
> if an interrupt comes in just like the opengroup specifies.
> 3. accept will use select to wait for incoming connections, the accept
> call itself will be made in the waiting thread. This should make sure
> that accept is not interrupted and avoid a loss of an already connected
> socket when TerminateThread stops the thread when it is already returning.
>
> Attached are my changes so far, i will do some further testing.
Cool! I didn't know that the WinSock error is thread specific. With
your changes it looks way better. Are you going to check that in?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
More information about the Cygwin-developers
mailing list