users@grizzly.java.net

newbie question about blocking ConnectorHandler.read

From: hagai <hagai_at_liveperson.com>
Date: Tue, 15 Jul 2008 13:47:13 -0700 (PDT)

Hi,
I am trying to use grizzly as an async http 1.1 client. I already have code
from a sync http client which I'd like to use to determine if a full
response has arrived. I register OP_READ in the onConnect method and if I
determine that there are not enough bytes in the onRead method I use
ConnectorHandler.read(byteBuffer, true) to synchronously read the remainder
of the message.
My problem is that after I send one request and read one response I never
get any more onRead events on that ConnectorHandler... is there anything I
should do after I read synchronously to get more onRead events?

Thanks,
Hagai.
-- 
View this message in context: http://www.nabble.com/newbie-question-about-blocking-ConnectorHandler.read-tp18474564p18474564.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.