hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1305090 - in /httpcomponents/httpcore/trunk: RELEASE_NOTES.txt httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java
Date Sun, 25 Mar 2012 18:54:10 GMT
Author: olegk
Date: Sun Mar 25 18:54:10 2012
New Revision: 1305090

URL: http://svn.apache.org/viewvc?rev=1305090&view=rev
Log:
AbstractHttpClientConnection#isResponseAvailable method now catches SocketTimeoutException
and returns false

Modified:
    httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java

Modified: httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/RELEASE_NOTES.txt?rev=1305090&r1=1305089&r2=1305090&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpcore/trunk/RELEASE_NOTES.txt Sun Mar 25 18:54:10 2012
@@ -1,6 +1,19 @@
 Changes since 4.2-BETA1 
 -------------------
 
+* AbstractHttpClientConnection#isResponseAvailable method now catches SocketTimeoutException
+  and returns false.
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
+
+* [HTTPCORE-296] Server side connections (both blocking and non-blocking) can now handle
entity 
+  enclosing requests without Content-Length and Transfer-Encoding headers.
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
+
+* [HTTPCORE-295] [HTTPCORE-288] Provided direct access to the underlying socket of non-blocking

+  HTTP connection to allow modification of socket level settings such as TCP_NODELAY, SO_KEEPALIVE,
+  TrafficClass, etc.
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
+
 * [HTTPCORE-289] HttpAsyncService fails to invoke Cancellable#cancel() when the ongoing HTTP

   exchange is aborted by the client. 
   Contributed by Oleg Kalnichevski <olegk at apache.org>

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java?rev=1305090&r1=1305089&r2=1305090&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java
Sun Mar 25 18:54:10 2012
@@ -242,7 +242,11 @@ public abstract class AbstractHttpClient
 
     public boolean isResponseAvailable(int timeout) throws IOException {
         assertOpen();
-        return this.inbuffer.isDataAvailable(timeout);
+        try {
+            return this.inbuffer.isDataAvailable(timeout);
+        } catch (SocketTimeoutException ex) {
+            return false;
+        }
     }
 
     public void sendRequestHeader(final HttpRequest request)



Mime
View raw message