classpathx-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-discuss] Sending SMTP message gets stuck upon exception


From: Chris Burdess
Subject: Re: [Classpathx-discuss] Sending SMTP message gets stuck upon exception
Date: Sat, 24 Jan 2004 13:42:00 +0100

Øyvind Harboe wrote:
If an exception is thrown while an SMTP message body is being written,
the subsequent "QUIT" command is ignored, because it is considered part of the message body which then causes the app to wait indefinitely for the QUIT command
to complete.

How are you calling QUIT? If you're using the SMTPConnection directly, you can issue finishData(), rset(), quit() in that order. If you're using the JavaMail SMTP provider, you may be calling close() after the exception; since the exception typically signals an I/O error, the connection state is not normally recoverable.

By the way, the (incomplete) patch you supplied relates to inetlib - if you could address these to address@hidden, it would be much appreciated.
--
Chris Burdess




reply via email to

[Prev in Thread] Current Thread [Next in Thread]