id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,branch,branch_author,launchpad_bug
2259,stdio fails when output redirected to a file,jknight,,"At least on linux. Behavior of other OSes may or may not vary. See attached test case.

It works as expected when running normally. However, when redirecting output to a file, connectionLost gets called immediately.

This is because os.read() throws OSError so enableReadHack=True, but then select always returns readable&writeable for files.

Fixing this properly requires not using that read hack, which means tracking in-use sockets separately from the readable/writable lists (aka #365 and #1662), so we can get close notification.",defect,closed,normal,,core,fixed,,spiv,branches/stdio-file-redirect-2259,"jknight, exarkun",
