You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Krishna R <si...@gmail.com> on 2008/04/03 00:32:45 UTC

[classlib][luni] readByte polls instead of blocking?

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

Re: [classlib][luni] readByte polls instead of blocking?

Posted by Nathan Beyer <nd...@apache.org>.
What class are you referring to?

On Wed, Apr 2, 2008 at 5:32 PM, Krishna R <si...@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
>