SpringSource/spring-integration — pull request #528 by garyrussell (2012-06-28 16:03:10+00:00)
Title: INT-2635 Set Buffer Size for Piped Streams 

Backport to 2.1.x

Improve performance.

For NIO sockets, a pair of PipedInput/OutputStreams are
used to transfer data from the reading thread to the
assembling thread.

The stream used the default buffer size (1024) which was
inefficient for large messages.

This change uses the underlying socket's receiveBufferSize
attribute to set the size of the piped stream, allowing
for more efficient data transfer.