Author xdegaye
Recipients giampaolo.rodola, josiahcarlson, neologix, python-dev, stutzbach, terry.reedy, vstinner, xdegaye
Date 2011-10-29.12:27:20
SpamBayes Score 1.7995e-05
Marked as misclassified No
Message-id <1319891241.32.0.251885135107.issue5661@psf.upfronthosting.co.za>
In-reply-to
Content
The test fails when use_poll is True.
The difference between using poll() and poll2():

    poll: All the read events are processed before the write events,
    so the close after the first recv by TestHandler will be followed
    by a send by TestClient within the same call to poll(). The
    test is deterministic.

    poll2: The order in which events are received is os dependent. So
    it is possible that the first recv by TestHandler is the last
    event in the 'r' list, so that after the close, a new call to
    poll2() is done and the first event in this new 'r' list, is not
    the expected write event for TestClient.

What about forcing self.use_poll to False, before calling
loop_waiting_for_flag() ? The drawback being that the test will be run
twice with the same environment.
History
Date User Action Args
2011-10-29 12:27:21xdegayesetrecipients: + xdegaye, terry.reedy, josiahcarlson, vstinner, giampaolo.rodola, stutzbach, neologix, python-dev
2011-10-29 12:27:21xdegayesetmessageid: <1319891241.32.0.251885135107.issue5661@psf.upfronthosting.co.za>
2011-10-29 12:27:20xdegayelinkissue5661 messages
2011-10-29 12:27:20xdegayecreate