You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jg...@apache.org on 2007/09/27 00:05:45 UTC
svn commit: r579819 -
/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
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);