~mattia.barbon/txnamedpipes/initial-import

Viewing all changes in revision 2.

  • Committer: Mattia Barbon
  • Date: 2011-05-13 15:41:40 UTC
  • Revision ID: mattia@develer.com-20110513154140-f9atgbqvojnnnfad
Force all writes to complete asynchronously even on Twisted 10.

The Twisted 10 IOCP reactor has some logic to handle I/O operations that
complete synchronously (rc = 1) and only handles asynchronously the ones
that fail with ERROR_IO_PENDING.  Twisted 11 aways waits for the async
completion notification.  In theory, the number of bytes written could
be obtained using GetOverlappedResult(), but it's probably not worth the
trouble of a different code path.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: