diff -r 2ff819fa5be1 -r dd05c3f2fa24 org/sonews/daemon/ChannelWriter.java --- a/org/sonews/daemon/ChannelWriter.java Wed Aug 26 17:04:04 2009 +0200 +++ b/org/sonews/daemon/ChannelWriter.java Fri Dec 25 15:42:46 2009 +0100 @@ -169,6 +169,9 @@ // events until we have something to write to the socket channel //selKey.cancel(); selKey.interestOps(0); + // Update activity timestamp to prevent too early disconnects + // on slow client connections + connection.setLastActivity(System.currentTimeMillis()); return; }