It should but the MTA we're connecting to is a load balancer, and this is a known issue with our load balancer vendor (the backend goes down but the load balancer doesn't terminate the connection), but this could happen for a variety of other reasons.
I chose to do this rather than SO_KEEPALIVE because the socket interface isn't really exposed through the smtplib module. Thien On Fri, 28 Jan 2005 11:01:30 +0100, Brad Knowles <[EMAIL PROTECTED]> wrote: > At 9:00 PM -0800 2005-01-27, Thien Vu wrote: > > > The patch I've attached is a simple alarm around the SMTPDirect.py > > call into smtplib to terminate the connection after a configurable > > amount of time. Right now I have it set to minutes(10) but it's > > completely configurable via mm_cfg.py > > That's very weird. The MTA should be dropping those connections > after five minutes of idle time (I think that's the recommended > value). Obviously, in your case the MTA is not doing this, so the > client should definitely be protecting itself against being hung > indefinitely. > > -- > Brad Knowles, <[EMAIL PROTECTED]> > > "Those who would give up essential Liberty, to purchase a little > temporary Safety, deserve neither Liberty nor Safety." > > -- Benjamin Franklin (1706-1790), reply of the Pennsylvania > Assembly to the Governor, November 11, 1755 > > SAGE member since 1995. See <http://www.sage.org/> for more info. > _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org
