[Spread-users] receive buffer is overflowing ?

John Lane Schultz jschultz at spreadconcepts.com
Fri Mar 21 15:37:19 EDT 2008

You can increase this buffer by changing the #define
MAX_SESSION_MESSAGES in spread_params.h of the daemon and recompiling.

However, if you are consistently sending faster than the receiver is
reading, then you will eventually overflow this buffer no matter how
big you make it.  At that point, you need to implement some kind of
flow control between your sender and receiver.


John Lane Schultz
Spread Concepts LLC
Phn: 443 838 2200 
Fax: 301 560 8875

Friday, March 21, 2008, 2:35:34 PM, you wrote:

> Hi,

> I am using Spread Java V4.0.0  and getting the exception

> spread.SpreadException: read(): java.net.SocketException: Connection reset
>         at spread.SpreadConnection.l(SpreadConnection.java:1062)
>         at spread.SpreadConnection.receive(SpreadConnection.java:1026)

> I believe it is because the receive buffer is overflowing.  (Happens on
> a heavy burst of data put on the channel)  I looked through the user's
> guide and do not see a parameter to change the buffer size.

> -1- Is my assumption of the receive buffer overflowing correct?  And if
> so then
>           -- What is the default receive buffer size?
>           -- How do I change the receive buffer size?

> -2- Is there another possible cause of this error?

> Thanks

> Michael
> .

More information about the Spread-users mailing list