Netty 4 OrderedMemoryAwareThreadPoolExecutor
I can not find the OrderedMemoryAwareThreadPoolExecutor in Netty 4.0.7.
I am writing a demo based on Netty 4.0.7's proxy example, I am doing a
file transfer from backend to frontend.
When my backend server send all the bytes to proxy, the server will FIN
the connection;
I found that when the speed of frontend network is slower than backend
network, the backend channelInActive() triggered before all the read event
of backend is processed, I can not find a way to make sure the close event
is always triggered after all the read event done.
I think the OrderedMemoryAwareThreadPoolExecutor in Netty 3.x maybe doing
this, but I can not find it in Netty 4, then how Netty 4 ensure the event
process order?
Thanks in advance
No comments:
Post a Comment