JavaMail

JavaMail Implementation

Breadcrumbs

Windows Hints and Tips

TCP TIME_WAIT

When making a large number of connections (e.g., to a mail server) in a
short amount of time, you might run out of sockets and not be able to
create any more connections. The existing connections will be in a
TIME_WAIT state as shown by netstat. The following articles explain
this situation in more detail and include tips for how to deal with
it: