apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [WIN32] apr_sockets BUG?
Date Fri, 19 Apr 2002 11:16:16 GMT
"Mladen Turk" <mturk@mappingsoft.com> writes:

> Hi,
> Dunno if I miss something, but the server/client test on WIN32 doesn't work.
> Well, as far I've been able to track the things down the non-blocking
> sockets are the bugger.

It seems to me that server.c is a bit naive in thinking that data will
be available as soon as it accepts a new connection.  You could add a
poll for data available before the apr_recv() in the server.

More easily you could set a timeout on the socket, but then we already
test that with client.c I believe.

Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

View raw message