Question about how to efficiently handle reads...

2009-07-30 Thread Emmanuel Lecharny
Hi guys, as I'm trying to document the IoProcessor main loop, I saw that the read( Session ) does read a buffer and then immediately push it to the chain, regardless there are more bytes in the socket : private void read(T session) { IoSessionConfig config = session.getConfig();

Re: Question about how to efficiently handle reads...

2009-08-17 Thread Julien Vermillard
Hi, There is a problem with the fairness against writes no ? You can perhaps saturate the IoP with reading ? Julien Le Thu, 30 Jul 2009 21:18:19 +0200, Emmanuel Lecharny a écrit : > Hi guys, > > as I'm trying to document the IoProcessor main loop, I saw that the > read( Session ) does read a b

Re: Question about how to efficiently handle reads...

2009-08-17 Thread Emmanuel Lecharny
Julien Vermillard wrote: Hi, There is a problem with the fairness against writes no ? You can perhaps saturate the IoP with reading ? yes, probably, but I think it would be better then to use a configuration parameter to ensure the fairness, like the maximum size we can read before passing