hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r469020 - /jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/nio/examples/NHttpServer.java
Date Sun, 29 Oct 2006 22:41:55 GMT
Author: olegk
Date: Sun Oct 29 14:41:54 2006
New Revision: 469020

URL: http://svn.apache.org/viewvc?view=rev&rev=469020
Log:
Fixed file descriptor leak

Modified:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/nio/examples/NHttpServer.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/nio/examples/NHttpServer.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/nio/examples/NHttpServer.java?view=diff&rev=469020&r1=469019&r2=469020
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/nio/examples/NHttpServer.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/nio/examples/NHttpServer.java
Sun Oct 29 14:41:54 2006
@@ -300,6 +300,7 @@
                 }
 
                 if (encoder.isCompleted()) {
+                    channel.close();
                     if (!this.connStrategy.keepAlive(response, context)) {
                         conn.close();
                     }



Mime
View raw message