Author mark.dickinson
Recipients MrJean1, alanmcintyre, donmez, facundobatista, giampaolo.rodola, josiahcarlson, mark.dickinson, r.david.murray
Date 2009-05-07.20:30:14
SpamBayes Score 3.20036e-07
Marked as misclassified No
Message-id <1241728216.45.0.635093016648.issue5798@psf.upfronthosting.co.za>
In-reply-to
Content
Getting rid of the and ... on the handle_read_event didn't make a 
difference:  I still get the hang in test_close_when_done.

But if I get rid of the and clause on the handle_write_event branch then
all the test_asynchat tests pass.  So that block now looks like:

        if flags & select.POLLIN and (obj.connected or obj.accepting):
            obj.handle_read_event()
        if flags & select.POLLOUT:
            obj.handle_write_event()
        if flags & select.POLLPRI and obj.connected:
            obj.handle_expt_event()
        if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
            obj.handle_close()

in my code.  So we're making progress (maybe). Unfortunately, 
test_asyncore now fails with:

======================================================================
FAIL: test_readwrite (__main__.HelperFunctionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_asyncore.py", line 161, in test_readwrite
    self.assertEqual(getattr(tobj, attr), attr==expectedattr)
AssertionError: False != True
History
Date User Action Args
2009-05-07 20:30:16mark.dickinsonsetrecipients: + mark.dickinson, facundobatista, josiahcarlson, alanmcintyre, giampaolo.rodola, donmez, MrJean1, r.david.murray
2009-05-07 20:30:16mark.dickinsonsetmessageid: <1241728216.45.0.635093016648.issue5798@psf.upfronthosting.co.za>
2009-05-07 20:30:15mark.dickinsonlinkissue5798 messages
2009-05-07 20:30:14mark.dickinsoncreate