geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r579819 - /geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
Date Wed, 26 Sep 2007 22:05:45 GMT
Author: jgenender
Date: Wed Sep 26 15:05:44 2007
New Revision: 579819

URL: http://svn.apache.org/viewvc?rev=579819&view=rev
Log:
Fix timeout

Modified:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java

Modified: geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java?rev=579819&r1=579818&r2=579819&view=diff
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
(original)
+++ geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
Wed Sep 26 15:05:44 2007
@@ -160,7 +160,7 @@
         HttpRequestMessage msg = (HttpRequestMessage)object;
 
         //Start the timeout timer now if a timeout is needed and there is not one already
in effect for this request
-        if (msg.getTimeOut() > 0 && msg.getTimeoutHandle() != null) {
+        if (msg.getTimeOut() > 0 && msg.getTimeoutHandle() == null) {
             TimeoutTask task = new TimeoutTask(ioSession);
             ScheduledFuture handle = scheduler.schedule(task, msg.getTimeOut(), TimeUnit.MILLISECONDS);
             msg.setTimeoutHandle(handle);



Mime
View raw message