implementation of blocking input

Bill Burke bburke at redhat.com
Tue Oct 18 18:31:28 EDT 2011


I don't want to do context switching between a reader thread and the 
application as it just doesn't perform as well as real, blocking I/O.

On 10/18/11 1:52 PM, Norman Maurer wrote:
> Hi there,
>
> I may be wrong but I think this should be what you are looking for:
>
> https://issues.jboss.org/browse/NETTY-307
>
> Its not yet included in netty. Maybe in 3.2.6...
>
> We will see.
>
> Bye,
> Norman
>
>
> 2011/10/18 Bill Burke<bburke at redhat.com>:
>> Because I want to write a blocking java.io.InputStream around the
>> channel instead of buffering the entire message body in memory.
>>
>> On 10/18/11 3:41 AM, Norman Maurer wrote:
>>> Why not use Channel.setReadable() for this purpose ?
>>>
>>> Bye,
>>> Norman
>>>
>>>
>>> 2011/10/18 Bill Burke<bburke at redhat.com>:
>>>> I'd like to extend Netty to support blocking input.  COuld I not get the
>>>> selector of the current channel, perform a selector.select(), check for
>>>> read op, do a read, block again until I've eaten what I need to eat.  I
>>>> would be doing this inside of a read request.
>>>>
>>>> Thanks,
>>>>
>>>> Bill
>>>>
>>>> --
>>>> Bill Burke
>>>> JBoss, a division of Red Hat
>>>> http://bill.burkecentral.com
>>>> _______________________________________________
>>>> netty-users mailing list
>>>> netty-users at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/netty-users
>>>>
>>>
>>> _______________________________________________
>>> netty-users mailing list
>>> netty-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/netty-users
>>
>> --
>> Bill Burke
>> JBoss, a division of Red Hat
>> http://bill.burkecentral.com
>> _______________________________________________
>> netty-users mailing list
>> netty-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/netty-users
>>
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the netty-users mailing list