harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From regi...@apache.org
Subject svn commit: r934401 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpURLConnectionImpl.java
Date Thu, 15 Apr 2010 13:46:30 GMT
Author: regisxu
Date: Thu Apr 15 13:46:29 2010
New Revision: 934401

URL: http://svn.apache.org/viewvc?rev=934401&view=rev
Log:
Apply patch for HARMONY-6497: [classlib][luni] Regreesion of r931940, URLConnectionTest will
hang

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpURLConnectionImpl.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpURLConnectionImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpURLConnectionImpl.java?rev=934401&r1=934400&r2=934401&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpURLConnectionImpl.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpURLConnectionImpl.java
Thu Apr 15 13:46:29 2010
@@ -451,8 +451,8 @@ public class HttpURLConnectionImpl exten
             //Only with such situation when the fixedContentLength field of HttpURLConnection
             //is set by HttpURLConnection.setFixedLengthStreamingMode and larger than 0,
the
             //IOException will be throwed
-            if (writeToSocket && fixedMod) {
-                if (limit > 0) {
+            if (writeToSocket) {
+                if (limit > 0 && fixedMod) {
                     throw new IOException(Messages.getString("luni.25")); //$NON-NLS-1$
                 }
                 sendCache(closed);



Mime
View raw message