Message87406
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 |
|
Date |
User |
Action |
Args |
2009-05-07 20:30:16 | mark.dickinson | set | recipients:
+ mark.dickinson, facundobatista, josiahcarlson, alanmcintyre, giampaolo.rodola, donmez, MrJean1, r.david.murray |
2009-05-07 20:30:16 | mark.dickinson | set | messageid: <1241728216.45.0.635093016648.issue5798@psf.upfronthosting.co.za> |
2009-05-07 20:30:15 | mark.dickinson | link | issue5798 messages |
2009-05-07 20:30:14 | mark.dickinson | create | |
|