This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cmcginty
Recipients cmcginty, ggenellina, giampaolo.rodola
Date 2010-06-28.21:00:56
SpamBayes Score 0.028361382
Marked as misclassified No
Message-id <1277758858.7.0.34774892515.issue6589@psf.upfronthosting.co.za>
In-reply-to
Content
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 first thread
continues to run, but asyncore is in an invalid state because it still
has the registration of the second SMTPServer instance that never completed."

As far as running in a thread. I have a program that needs must start and stop the SMTPServer dynamically. I did this by putting SMTPServer in a thread. Maybe there is another way to do it, but if you are not going to support this, then it should be documented.
History
Date User Action Args
2010-06-28 21:00:58cmcgintysetrecipients: + cmcginty, ggenellina, giampaolo.rodola
2010-06-28 21:00:58cmcgintysetmessageid: <1277758858.7.0.34774892515.issue6589@psf.upfronthosting.co.za>
2010-06-28 21:00:56cmcgintylinkissue6589 messages
2010-06-28 21:00:56cmcgintycreate