org/sonews/daemon/ChannelWriter.java
changeset 32 3af4237e4a15
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	Wed Jun 30 14:48:53 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