Author: remy.maucherat(a)jboss.com
Date: 2008-02-13 10:32:30 -0500 (Wed, 13 Feb 2008)
New Revision: 418
Modified:
trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
Log:
- JBESB-1378: Send some bytes if deferAccept is in use.
Modified: trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
===================================================================
--- trunk/java/org/apache/tomcat/util/net/AprEndpoint.java 2008-02-13 13:37:12 UTC (rev
417)
+++ trunk/java/org/apache/tomcat/util/net/AprEndpoint.java 2008-02-13 15:32:30 UTC (rev
418)
@@ -780,6 +780,10 @@
// connection quicker
s.setSoLinger(true, 0);
}
+ // If deferAccept is enabled, send at least one byte
+ if (deferAccept) {
+ s.getOutputStream().write(" ".getBytes());
+ }
} catch (Exception e) {
// Ignore
} finally {
Show replies by date