How are connection timeouts implemented?

John Zukowski

According to Bill Shannon, primary JavaMail engineer: The timeout is implemented by starting a thread to make the connection and if it doesn't complete before the timeout, the thread is abandoned and left to die. (Unfortunately, there's no way to actually abort the connection attempt.)