Possible ways of getting here
socket.accept() throws a SecurityException
socket.setSoTimeout() throws a SocketException
socket.accept() throws some other exception (after a JDK change)
In these cases the test won't work so carry on - essentially
the behaviour before this patch
socket.accept() throws a SocketTimeoutException
In this case all is well so carry on