This is a test-only change to allow the test to terminate its worker threads more timely, rather than leaving it to jtreg ( which has caused some issues, see 8208690 and 7902259 ). The test now closes the worker's socket so that the worker thread, that blocked may be blocked in a socket read, can exit more timely.
http://cr.openjdk.java.net/~chegar/8211092/ -Chris. [1] https://bugs.openjdk.java.net/browse/JDK-8208690 [2] https://bugs.openjdk.java.net/browse/CODETOOLS-7902259