jdk/test/java/net/Socket/CloseAvailable.java
changeset 6115 7c523cf2bc8a
parent 5506 202f599c92aa
child 7668 d4a77089c587
--- a/jdk/test/java/net/Socket/CloseAvailable.java	Tue Jul 20 10:41:50 2010 -0400
+++ b/jdk/test/java/net/Socket/CloseAvailable.java	Wed Jul 21 13:29:26 2010 +0100
@@ -47,6 +47,7 @@
         t.start();
 
         Socket  soc = ss.accept();
+        ss.close();
 
         DataInputStream is = new DataInputStream(soc.getInputStream());
         is.close();
@@ -64,7 +65,7 @@
     public void run() {
         try {
             Socket s = new Socket(addr, port);
-
+            s.close();
         } catch (Exception e) {
             e.printStackTrace();
         }