Gary Russell opened INT-2418 and commented
It is hard to predict an appropriate pool size when using NIO. With large messages, it is possible that 2 threads per socket are needed concurrently (one reading fragments, one assembling those fragments into messages. One thread from the pool is reserved for handling selector events.
In the referenced forum thread, the user set the pool size to 2. One of these was the selector thread; the second read 3251 bytes from the socket and blocked writing to the piped output stream because no threads were available to consume the data from the corresponding piped input stream.
The pool-size should be selected such that sufficient threads are available to handle the expected number of concurrent message receptions.
Affects: 2.1 GA
Reference URL: http://forum.springsource.org/showthread.php?121807-Simple-TCP-Client-Spring-Integration-(-Not-connecting)
Issue Links: