java - Determining pending buffered write size with netty? -
i have daemon i'm writing , want fill tcp send buffer once filled want suspend writing connection.
i'm using netty 3.2.5 ...
the idea writes should go tcp send buffer until fills
then once filled writer thread should mark connection 'suspended' move on other clients reading fast enough.
the problem can't work.
i wrote implementation called channel.write() , had implementation of issuspended() wrote called getinterestops().
looking @ org.jboss.netty.channel.socket.nio.niosocketchannel ... confirm internally it's doing expect.
the problem doesn't work. drops messages if way.
this small response of 40 http chunks smaller tcp send buffer yet it's still dropping messages.
is there accepted way of doing this?
this question has been answered here in discussion group: https://groups.google.com/d/topic/netty/dxvwrqiatae/discussion
Comments
Post a Comment