Ticket #2636 defect closed duplicate

Opened 6 years ago

Last modified 6 years ago

stdio.StandardIO breaks, readhack code in process.py to blame

Reported by: gtalvola Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description

stdio.StandardIO under some conditions will erroneously detect a closed connection, preventing any further output to stdout. It has to do with the "readhack" code in process.py. I've attached a couple of scripts that should make the problem clear. Just run teststdout and notice that the two runs of stdout.py produce different output. Then, edit stdout.py to uncomment out the s._writer.enableReadHack = False line, and re-run it, and this time the output should agree.

I discovered the problem using Twisted 2.4.0, but the relevant parts of process.py look the same in the trunk, so I expect the problem is still there.

Attachments

stdout.py Download (1.0 KB) - added by gtalvola 6 years ago.
teststdout Download (96 bytes) - added by gtalvola 6 years ago.

Change History

Changed 6 years ago by gtalvola

Changed 6 years ago by gtalvola

1

Changed 6 years ago by gtalvola

BTW, I'm using Python 2.4.1 on Fedora Core 3 with a 2.6.16.20 kernel, in case that matters.

2

Changed 6 years ago by therve

  • status changed from new to closed
  • resolution set to duplicate
  • milestone Core-2.6 deleted

I think this a duplicate of #2259.

3

Changed 2 years ago by <automation>

  • owner glyph deleted
Note: See TracTickets for help on using tickets.