james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Serge Knystautas" <ser...@lokitech.com>
Subject Re: Blocked thread in RemoteDelivery
Date Tue, 12 Jun 2001 12:40:30 GMT
Sending more detail on the dev listserv...

For a future version, I'm considering creating a separate thread to send
each message, and join to that thread for a certain number of seconds, so if
the message is not sent, it is aborted.  However, this creates extra
complication in the code, an extra thread created and destroyed for each
message (or even more complication to build a thread spool), and could cause
problems for large messages sent over a slow connection.

Any thoughts on a better way to handle this?  Again, if someone can figure
out what's hanging it, that's the best of all possible worlds.

Serge Knystautas
Loki Technologies
----- Original Message -----
From: "scott werden" <scott@scottandrita.com>
To: <james-user@jakarta.apache.org>
Sent: Tuesday, June 12, 2001 1:32 AM
Subject: Blocked thread in RemoteDelivery

> Outgoing mail stopped being delivered today by my James server and I took
> look at log files and code to see what was going on. What I discovered is
> that it appears the one and only delivery thread (created in
> RemoteDelivery.java) got blocked within RemoteDelivery.deliver(). In the
> code, a message gets logged (line 109) saying: "attempting delivery of
> and another at line 130 that should report the message was successfully
> sent. I never saw the 2nd message in the log file (although I saw the 1st)
> after James hung, nor was there a message for any exceptions. Seems like
> something hung in transport.connect() or transport.sendMessage(). I
> restarted James and all the backed-up messages got sent and it is again
> working OK. I did up the threads but this is just a delay tactic and not a
> fix.
> Anybody got any ideas? Has this bug been fixed? I have release 1.2.1.
> Thanks,
> Scott W.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org

To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org

View raw message