On 4/4/06, Michael Bauroth <[EMAIL PROTECTED]> wrote: > > Hi, > > I've just implemented a simple client/server pair. Next I've tried to > run some data transfer (consuming)) performance tests (all happened in 2 > JVM's on a single shared server). > The problem is that from a specific load on the data come quicker into > the server then it could handle them. When I'm right, the extra data > will be stored in the incoming pipeline, right? What happens, if this > pipeline is full? And how can I prevent from such situations?
You're right. The server will get broken throwing an OutOfMemoryError. We have to implement an IoFilter which prevents this situation. You can control the I/O traffic by calling IoSession.suspend/resumeRead/Write() method, so it should be done quite easily. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
