commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r190637 - /jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java
Date Tue, 14 Jun 2005 18:43:14 GMT
Author: olegk
Date: Tue Jun 14 11:43:13 2005
New Revision: 190637

URL: http://svn.apache.org/viewcvs?rev=190637&view=rev
Log:
PR #35322 (Stale connection check does not work with IBM JSSE/JRE)

Contributed by Oleg Kalnichevski
Reviewed by Michael Becke

Modified:
    jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java

Modified: jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java?rev=190637&r1=190636&r2=190637&view=diff
==============================================================================
--- jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java
(original)
+++ jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java
Tue Jun 14 11:43:13 2005
@@ -499,7 +499,7 @@
             // assume the connection is not stale.
             isStale = false;
             try {
-                if (inputStream.available() == 0) {
+                if (inputStream.available() <= 0) {
                     try {
                         socket.setSoTimeout(1);
                         inputStream.mark(1);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message