apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Erenkrantz" <jus...@erenkrantz.com>
Subject Re: apr_pollset_poll does not return when socket closed
Date Fri, 01 Sep 2006 04:04:13 GMT
On 8/31/06, Henry Jen <henryjen@ztune.net> wrote:
> 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?

You should read:


In short, there's no way to portably detect the socket is closed via a
poll()-like mechanism.  It seems like everyone keeps running into
this.  Apparently, the only way to know if it is closed is to read()
from it - which really sucks.  -- justin

View raw message