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 ajaksu2, akuchling, alexer, anadelonbrin, brett.cannon, giampaolo.rodola, gregory.p.smith, josiahcarlson, tim.peters
Date 2009-03-31.20:32:47
SpamBayes Score 0.00058213377
Marked as misclassified No
Message-id <1238531569.15.0.470101675632.issue1161031@psf.upfronthosting.co.za>
In-reply-to
Content
I still get some occasional EBADF failures when running pyftpdlib test
suite by using poll().
I think that it makes more sense moving the:

        if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
            obj.handle_close()

...lines at the top and return if handle_close() is called, as I did in
the patch attached to issue 4501, which is:


        if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
            obj.handle_close()
        else:
            if flags & select.POLLIN:
                obj.handle_read_event()
            if flags & select.POLLOUT:
                obj.handle_write_event()
            if flags & select.POLLPRI:
                obj.handle_expt_event()
History
Date User Action Args
2009-03-31 20:32:49giampaolo.rodolasetrecipients: + giampaolo.rodola, tim.peters, akuchling, brett.cannon, gregory.p.smith, anadelonbrin, josiahcarlson, ajaksu2, alexer
2009-03-31 20:32:49giampaolo.rodolasetmessageid: <1238531569.15.0.470101675632.issue1161031@psf.upfronthosting.co.za>
2009-03-31 20:32:47giampaolo.rodolalinkissue1161031 messages
2009-03-31 20:32:47giampaolo.rodolacreate