Just a thought...Could it be caused by a blocking socket issue? If that's 
the case, setting a timeout on the socket would resolve the problem nicely. 
I think it would be better to figure out why the thread gets "wedged" rather 
than working around this problem.

In general, rather than launching too many threads (it gets really costly on 
the system when you get too many), why not have only one thread feeding from 
a queue?

You could also add a watchdog thread monitoring the email sender. If the 
watchdog sees that the sender is connected and has not done anything for too 
long, the watchdog could then close the socket connection to the email 
server forcibly, hence removing the "wedge" (assuming that problems occur 
because of blocking sockets).

My 2 cents...

Regards,
Fabien.

>From: Geoffrey Talvola <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" 
><[EMAIL PROTECTED]>
>Subject: [Webware-discuss] WebKit error email issue
>Date: Mon, 1 Jul 2002 11:53:05 -0400
>
>We had some trouble with our email server over this weekend (MS Exchange)
>and we discovered that during the time period when the email server was
>hosed, each WebKit thread that attempted to send an error email wedged.
>After 20 failed attempts to send error email, the whole appserver was 
>wedged
>because all threads were busy.  The appserver had to be killed and
>restarted.  This is running on Windows 2000.  Fortunately it was on our
>development server, not our production server.
>
>2 questions:
>
>1) Has anyone seen behavior like this before?
>
>2) How would you feel about modifying WebKit so that it spawns a separate
>thread to send the error email?  That should eliminate the problem because
>if the spawned thread wedges, it won't affect anything else.  I would make
>this a "daemon thread" so that if it's wedged, it won't prevent the
>appserver from exiting.
>
>If I hear no objections, I'll go ahead and implement this.
>
>- Geoff
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Webware-discuss mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/webware-discuss




_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to