<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2526.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm fairly new to Spread. I plan on using it for a
distributed chat server system written in Java.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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?)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help appreciated,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Michael Rinner</FONT></DIV></BODY></HTML>