[Spread-users] flooding problems?

Michael Rinner rinner at student.uni-kl.de
Thu Aug 30 03:09:26 EDT 2001


I'm fairly new to Spread. I plan on using it for a distributed chat server system written in Java.

For evaluation I ran some performance tests and noticed that any listener will eventuallly stop working if a sender floods a connection continuously with messages that arrive faster than the listener may receive them. I first thought I had problems with my code but I managed to get the same results using modified versions of the User.java and Flooder.java classes. The receiver thread does not throw any exceptions, but just stops without ever recovering.

My question is, is there any way to prevent this flooding by letting a sender wait until messages have been received (I thought the poll()-method could be used for this, but it doesn't seem to work right?)

Or are there any known problems either with the Java-implementation or the Spread daemon on linux? I'm running on linux 2.40 with Sun JDK 1.1.8.

I understand that this amount of traffic produced by the Flooder should not be expected in the chat environment I'm planning for. Still, I would like to react to those cases instead of hoping they will not happen...

Any help appreciated,

Michael Rinner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.spread.org/pipermail/spread-users/attachments/20010830/e46b3fac/attachment.html 

More information about the Spread-users mailing list