test/jdk/java/net/Socket/asyncClose/BrokenPipe.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 57358 f0a1d9760c5e
child 58679 9c3209ff7550
--- a/test/jdk/java/net/Socket/asyncClose/BrokenPipe.java	Thu Oct 17 20:27:44 2019 +0100
+++ b/test/jdk/java/net/Socket/asyncClose/BrokenPipe.java	Thu Oct 17 20:53:35 2019 +0100
@@ -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();