You are correct. They are gone and here's the plan.
Instead of Channel.setReadable(), I'll let a user return a bounded
inbound buffer. If buffer is full, Netty will stop reading and resume
reading when buffer becomes not full. To disable inbound traffic, you
can simply limit the capacity of the inbound buffer to 0. Note that
this has not been implemented yet.
Memory awareness in DefaultEventExecutor should also be added to
DefaultEventExecutor before 4.0 enters beta phase.
If you have a good or better idea, I'd love to listen to.
HTH,
T
Yeah except that it's per context rather than per channel. Lemme know if you have a better idea. :-)
--
Sent from a mobile device.
The biggiest difference is that setReadable() is not a downstream operation anymore. Netty determines to resume or suspend reads depending on whether all flags are true or not.
--
Sent from a mobile device.
As a result, inbound traffic throttling becomes simpler. However, it means a handler cannot deny the request from upstream to suspend inbound traffic. But.. I think it doesn't make much sense to do that. Let me know if you find any use case.
--
Sent from a mobile device.
As a result, inbound traffic throttling becomes simpler. However, it means a handler cannot deny the request from upstream to suspend inbound traffic. But.. I think it doesn't make much sense to do that. Let me know if you find any use case.
--
Sent from a mobile device.
On Jul 24, 2012 4:15 PM, "Netty project" wrote:
The biggiest difference is that setReadable() is not a downstream operation anymore. Netty determines to resume or suspend reads depending on whether all flags are true or not.
--
Sent from a mobile device.