org/sonews/daemon/ChannelWriter.java
changeset 34 9f0b95aafaa3
parent 15 f2293e8566f5
     1.1 --- a/org/sonews/daemon/ChannelWriter.java	Thu Aug 20 18:41:21 2009 +0200
     1.2 +++ b/org/sonews/daemon/ChannelWriter.java	Sun Aug 29 17:04:25 2010 +0200
     1.3 @@ -169,6 +169,9 @@
     1.4            // events until we have something to write to the socket channel
     1.5            //selKey.cancel();
     1.6            selKey.interestOps(0);
     1.7 +          // Update activity timestamp to prevent too early disconnects
     1.8 +          // on slow client connections
     1.9 +          connection.setLastActivity(System.currentTimeMillis());
    1.10            return;
    1.11          }
    1.12