« Return to Thread: NIO Connection Management

NIO Connection Management

by Q Beukes :: Rate this Message:

Reply to Author | View in Thread

Hey,

I checked out the EventDispatch thread the other day.. the
createConnection() inside the connected() method is what drew my
attention to it.

Problem is that I put a breakpoint there, and the connection is
already made to the target host (according to netstat), by the time
that break point is reached. It seems to me that the connected()
method is more what wraps IOSession (thus the Channel) inside a
DefaultNHttpClientConnection object.

So you can't really manage the connections, as a new physical
connection is already made at this point.
--
Quintin Beukes

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: NIO Connection Management

LightInTheBox - Buy quality products at wholesale price!