hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r500878 - in /jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio: NHttpConnection.java impl/NHttpConnectionBase.java
Date Sun, 28 Jan 2007 21:05:00 GMT
Author: olegk
Date: Sun Jan 28 13:05:00 2007
New Revision: 500878

URL: http://svn.apache.org/viewvc?view=rev&rev=500878
Log:
HTTPCORE-33: Added #setSocketTimeout method to the NHttpConnection interface

Modified:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/NHttpConnection.java
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/NHttpConnectionBase.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/NHttpConnection.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/NHttpConnection.java?view=diff&rev=500878&r1=500877&r2=500878
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/NHttpConnection.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/NHttpConnection.java
Sun Jan 28 13:05:00 2007
@@ -67,4 +67,11 @@
      */
     HttpContext getContext();
     
+    /**
+     * Sets socket timeout value.
+     * 
+     * @param timeout timeout value in milliseconds
+     */
+    void setSocketTimeout(int timeout);
+    
 }

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/NHttpConnectionBase.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/NHttpConnectionBase.java?view=diff&rev=500878&r1=500877&r2=500878
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/NHttpConnectionBase.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/impl/NHttpConnectionBase.java
Sun Jan 28 13:05:00 2007
@@ -255,6 +255,10 @@
         }
     }
 
+    public void setSocketTimeout(int timeout) {
+        this.session.setSocketTimeout(timeout);
+    }
+
     public void shutdown() throws IOException {
         this.closed = true;
         this.session.close();



Mime
View raw message