org/sonews/daemon/Connections.java
changeset 26 407c428adb5b
parent 15 f2293e8566f5
child 28 15d14b110240
     1.1 --- a/org/sonews/daemon/Connections.java	Thu Aug 20 18:41:21 2009 +0200
     1.2 +++ b/org/sonews/daemon/Connections.java	Tue Apr 27 21:51:12 2010 +0200
     1.3 @@ -134,7 +134,8 @@
     1.4          while (iter.hasNext())
     1.5          {
     1.6            conn = iter.next();
     1.7 -          if((System.currentTimeMillis() - conn.getLastActivity()) > timeoutMillis)
     1.8 +          if((System.currentTimeMillis() - conn.getLastActivity()) > timeoutMillis
     1.9 +              && conn.getBuffers().isOutputBufferEmpty())
    1.10            {
    1.11              // A connection timeout has occurred so purge the connection
    1.12              iter.remove();