I've changed the patch for socket timeouts again. This fixed version handles closing the socket in exactly the same way as JDK's does (as far as I can tell by test anyway). Nic Ferrier