Opened 8 years ago

Last modified 8 years ago

#4296 defect new

stopReading doesn't stop reading immediately on pollreactor and epollreactor

Reported by: PenguinOfDoom Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch: branches/poll-stopreading-4296
branch-diff, diff-cov, branch-cov, buildbot
Author: pahan

Description

Suppose we have two file descriptors ready for reading. poll() returns both of them. pollreactor runs doRead for fd1, which calls stopReading on fd2. pollreactor might then call doRead on fd2, despite the stopReading.

Specifically, this will happen if fd2 is also registered for writing. Branch has a test attached.

Change History (3)

comment:1 Changed 8 years ago by pahan

Author: pahan
Branch: branches/poll-stopreading-4296

(In [28418]) Branching to 'poll-stopreading-4296'

comment:2 Changed 8 years ago by PenguinOfDoom

The test is under twisted.internet.test.test_tcp.TCPClientTestsBuilder.test_readStopReading

comment:3 Changed 7 years ago by <automation>

Owner: Glyph deleted
Note: See TracTickets for help on using tickets.