Maarten Bosteels wrote:
Hi Luis,
Are your producer and consumer two processes that use MINA to communicate ?
So you are calling ioSession.suspendRead in process A (the consumer end)
in the hope that this would block the producer in process B (at the other
end of the wire), right ?
Yes, that's it exactly.
I guess this would work, if you are using TCP:
It is my understanding that MINA will stop requesting incoming data from
the
OS when you call suspendRead.
Eventually, the OS'es buffer of incoming data will be full and TCP will ask
the other side to stop writing.
Yeah... my problem is with the "eventually" part, I really need a
suspendReadNow().
If all else fails I will have to figure out a way of doing this at the protocol
level.
Maarten, Trustin ... thanks!
--
Luis Neves