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 giampaolo.rodola
Recipients giampaolo.rodola, josiah.carlson, josiahcarlson
Date 2008-11-07.12:14:50
SpamBayes Score 0.00027721346
Marked as misclassified No
Message-id <1226060153.34.0.769481825348.issue4277@psf.upfronthosting.co.za>
In-reply-to
Content
Suppose you have tow sockets handled by two asynchat.async_chat class
instances and from class1 you want to send some data through class2:

class1(asynchat.async_chat):
    
   ...
   
   def mymethod(self):
       class2_instance.push_with_producer(producer)


Since push_with_producer automatically calls initiate_send() if an error
occurs while class2 reads the first chunk of data from the producer,
class1's handle_error gets called.
If the error occurs when reading the next chunks of data class2's
handle_error will be called instead.
This is an inconsistency that should be fixed so that always class2's
handle_error gets called.

The patch in attachment does that.
History
Date User Action Args
2008-11-07 12:15:53giampaolo.rodolasetrecipients: + giampaolo.rodola, josiahcarlson, josiah.carlson
2008-11-07 12:15:53giampaolo.rodolasetmessageid: <1226060153.34.0.769481825348.issue4277@psf.upfronthosting.co.za>
2008-11-07 12:14:52giampaolo.rodolalinkissue4277 messages
2008-11-07 12:14:51giampaolo.rodolacreate