apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Jen <henry...@ztune.net>
Subject apr_pollset_poll does not return when socket closed
Date Fri, 01 Sep 2006 03:55:57 GMT
Hi,

I was expecting apr_pollset_poll to return from blocking if the socket 
was closed, but this does not seems to be the case on OpenSolaris(Neveda 
build 35).

Haven't get a chance to test on other platform, but wondering if this is 
reasonable to expect. If it is, what do I miss in the testing code?

Attached please find the test program reveals the problem, basically 
what it does is to listen on a socket, and start a thread to poll on 
that socket. Wait a while to close the socket and join on the polling 
thread.

Any ideas are welcome, thank you in advance. :-)

Cheers,
Henry

Mime
View raw message