incubator-ftpserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r545730 - /incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/listener/mina/MinaFtpProtocolHandler.java
Date Sat, 09 Jun 2007 11:24:02 GMT
Author: ngn
Date: Sat Jun  9 04:23:59 2007
New Revision: 545730

URL: http://svn.apache.org/viewvc?view=rev&rev=545730
Log:
Fix for bug where activity on a session in a MINA based listener would not be reported and
any user would be disconnected even if active (FTPSERVER-92). Patch by Steve Jones, thanks!

Modified:
    incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/listener/mina/MinaFtpProtocolHandler.java

Modified: incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/listener/mina/MinaFtpProtocolHandler.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/listener/mina/MinaFtpProtocolHandler.java?view=diff&rev=545730&r1=545729&r2=545730
==============================================================================
--- incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/listener/mina/MinaFtpProtocolHandler.java
(original)
+++ incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/listener/mina/MinaFtpProtocolHandler.java
Sat Jun  9 04:23:59 2007
@@ -100,8 +100,10 @@
         MinaConnection connection = (MinaConnection) session.getAttribute(CONNECTION_KEY);
         MinaFtpResponseOutput output = (MinaFtpResponseOutput) session.getAttribute(OUTPUT_KEY);
 
-        
-        protocolHandler.onRequestReceived(connection, (FtpSessionImpl)connection.getSession(),
output, request);
+        FtpSessionImpl ftpSession = (FtpSessionImpl) connection.getSession();
+        ftpSession.updateLastAccessTime();
+                 
+        protocolHandler.onRequestReceived(connection, ftpSession, output, request);
     }
 
     public void sessionIdle( IoSession session, IdleStatus status )



Mime
View raw message