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 2012/10/13 17:39:39 UTC

svn commit: r1397862 - /tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java

Author: markt
Date: Sat Oct 13 15:39:38 2012
New Revision: 1397862

URL: http://svn.apache.org/viewvc?rev=1397862&view=rev
Log:
Grr. Remove local env changes for testing

Modified:
    tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java

Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java?rev=1397862&r1=1397861&r2=1397862&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/util/net/TestSsl.java Sat Oct 13 15:39:38 2012
@@ -171,8 +171,8 @@ public class TestSsl extends TomcatBaseT
         SSLContext sslCtx = SSLContext.getInstance("TLS");
         sslCtx.init(null, TesterSupport.getTrustManagers(), null);
         SSLSocketFactory socketFactory = sslCtx.getSocketFactory();
-        SSLSocket socket = (SSLSocket) socketFactory.createSocket("linux6405.dev.local",
-                8443);
+        SSLSocket socket = (SSLSocket) socketFactory.createSocket("localhost",
+                getPort());
 
         OutputStream os = socket.getOutputStream();
 
@@ -182,7 +182,7 @@ public class TestSsl extends TomcatBaseT
         socket.startHandshake();
 
         try {
-            os.write("Host: linux6405.dev.local:8443\n\n".getBytes());
+            os.write("Host: localhost\n\n".getBytes());
         } catch (IOException ex) {
             ex.printStackTrace();
             fail("Re-negotiation failed");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org