harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer" <ndbe...@apache.org>
Subject Re: [classlib][luni] readByte polls instead of blocking?
Date Thu, 03 Apr 2008 02:49:09 GMT
What class are you referring to?

On Wed, Apr 2, 2008 at 5:32 PM, Krishna R <sith.list@gmail.com> wrote:
> Hi.
>  I was under the assumption that readByte() blocked in Java. But we found
>  that readByte internally calls pollSelectRead () in socket.c which polls
>  with 100ms timeout.  Is there any reason to do this? We do see a not poll
>  option in the code but it is not turned on by default.  This is on Linux
>  BTW. I wonder if there was a reasoning behind this i am overlooking.
>  Thanks,
>  Krish

View raw message