You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2010/03/07 22:25:38 UTC
svn commit: r920120 -
/tomcat/trunk/test/org/apache/catalina/startup/TestTomcatSSL.java
Author: markt
Date: Sun Mar 7 21:25:37 2010
New Revision: 920120
URL: http://svn.apache.org/viewvc?rev=920120&view=rev
Log:
Fix intermittent test failures
Modified:
tomcat/trunk/test/org/apache/catalina/startup/TestTomcatSSL.java
Modified: tomcat/trunk/test/org/apache/catalina/startup/TestTomcatSSL.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/startup/TestTomcatSSL.java?rev=920120&r1=920119&r2=920120&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/startup/TestTomcatSSL.java (original)
+++ tomcat/trunk/test/org/apache/catalina/startup/TestTomcatSSL.java Sun Mar 7 21:25:37 2010
@@ -144,8 +144,11 @@
os.write("GET /examples/servlets/servlet/HelloWorldExample HTTP/1.0\n".getBytes());
os.flush();
+
InputStream is = socket.getInputStream();
+ // Make sure the NIO connector has read the request before the handshake
+ Thread.sleep(100);
socket.startHandshake();
handshakeDone = false;
byte[] b = new byte[0];
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org