test/jdk/java/net/Socket/asyncClose/BrokenPipe.java
changeset 55649 ad8e3b295615
parent 54811 9db7c0f561a6
child 58679 9c3209ff7550
--- a/test/jdk/java/net/Socket/asyncClose/BrokenPipe.java	Wed Jul 10 16:45:28 2019 +0000
+++ b/test/jdk/java/net/Socket/asyncClose/BrokenPipe.java	Wed Jul 10 22:33:23 2019 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -57,7 +57,7 @@
     public static void main(String[] args) throws Exception {
         IPSupport.throwSkippedExceptionIfNonOperational();
 
-        ServerSocket ss = new ServerSocket(0);
+        ServerSocket ss = new ServerSocket(0, 0, InetAddress.getLocalHost());
         Socket client = new Socket(InetAddress.getLocalHost(),
                                    ss.getLocalPort());
         Socket server = ss.accept();