[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r82404, r82406, r82407 and r82408. -- resolution: -> fixed stage: unit test needed -> status: open -> closed ___ Python tracker __

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- keywords: +patch Added file: http://bugs.python.org/file17819/smtpd.patch ___ Python tracker ___

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +josiah.carlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Although the use case is pretty uncommon and somewhat twisted (take a look at Lib/test/test_ftplib.py for a nicer approach on wrapping asyncore.loop() in a thread) it is true that if SMTPServer class raise an exception at instantiation time, some garbage r

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-29 Thread Casey McGinty
Casey McGinty added the comment: I attached a simple script that reproduces the report issue. I hope it helps. -- Added file: http://bugs.python.org/file17807/smtp_test.py ___ Python tracker ___

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-28 Thread R. David Murray
R. David Murray added the comment: If you can provide a short example that reproduces the problem it will be much more likely to get fixed. -- nosy: +r.david.murray stage: -> unit test needed type: -> behavior ___ Python tracker

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-28 Thread Casey McGinty
Casey McGinty added the comment: This is how it gets in an "invalid state". Not sure why you can't look at the code and see the mistake. "There is no code in the SMTPServere.__init__ method that catches the exception raised, caused by the failed bind attempt. After the exception is caught, the

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Could you provide an actual example code which reproduces this problem? It's not clear to me how the dispatcher instance can end up in an "invalid state" since handle_error() should automatically remove the invalid dispatcher instance from the socket_map if

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-05-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Could you provide an actual example code which reproduces this problem? It's not clear to me how the dispatcher instance can end up in an "invalid state" since handle_error() should automatically remove the "invalid dispatcher instance" from the socket_map

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-03-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2009-08-03 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2009-07-27 Thread Casey McGinty
New submission from Casey McGinty : When subclass of smtpd.SMTPServer, it is possible the get asyncore.loop to enter an infinite loop where the following output is shown: . warning: unhandled write event warning: unhandled read event warning: unhandled write event warning: unhandled read eve