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 sbt
Recipients Erez.Sh, William.Edwards, asksol, danken, dmalcolm, giampaolo.rodola, jnoller, pitrou, sbt, synapse, vstinner
Date 2012-10-22.18:34:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350930895.84.0.581351744444.issue10527@psf.upfronthosting.co.za>
In-reply-to
Content
> A preliminary patch is in attachment.
> By default it uses select() but looks for ValueError (raised in case 
> FD_SETSIZE gets hit) and falls back on using poll().
>
> This is the failure I get when running tests on Linux.
> It is related to issue 3321 and I'm not sure what to do with it (remove > the test maybe?).

I guess the patch could do

    if any(x[1] & POLLNVAL for x in ret):
        raise ValueError('invalid file descriptor')

Also, I don't think there is any need to unregister the fds since you are just removing entries from an internal dict which will be garbage collected.

I don't know if patching 2.7, 3.2, 3.3 to use/fallback on poll() would be allowed as a bug fix.  When, if ever, will the next 2.7 release happen?
History
Date User Action Args
2012-10-22 18:34:55sbtsetrecipients: + sbt, pitrou, vstinner, giampaolo.rodola, jnoller, synapse, asksol, dmalcolm, danken, Erez.Sh, William.Edwards
2012-10-22 18:34:55sbtsetmessageid: <1350930895.84.0.581351744444.issue10527@psf.upfronthosting.co.za>
2012-10-22 18:34:55sbtlinkissue10527 messages
2012-10-22 18:34:55sbtcreate