hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r697356 - /httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedOutputBuffer.java
Date Sat, 20 Sep 2008 11:52:02 GMT
Author: olegk
Date: Sat Sep 20 04:52:02 2008
New Revision: 697356

URL: http://svn.apache.org/viewvc?rev=697356&view=rev
Log:
HTTPCORE-172: SharedOutputBuffer#close() to behave exactly like SharedOutputBuffer#shutdown()

Modified:
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedOutputBuffer.java

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedOutputBuffer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedOutputBuffer.java?rev=697356&r1=697355&r2=697356&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedOutputBuffer.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedOutputBuffer.java
Sat Sep 20 04:52:02 2008
@@ -93,14 +93,7 @@
     }
     
     public void close() {
-        if (this.shutdown) {
-            return;
-        }
-        try {
-            writeCompleted();
-        } catch (IOException ignore) {
-            // should never happen
-        }
+        shutdown();
     }
 
     public void shutdown() {



Mime
View raw message