Go to the latest version of this document.
t.i.win32eventreactor : module documentation
Part of twisted.internet
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:07:41.
A win32event based implementation of the Twisted main loop.
This requires win32all or ActivePython to be installed.
Maintainer: Itamar Shtull-Trauring
WaitForMultipleObjects and thus the event loop can only handle 64
Process running has some problems (see Process docstring).
Event loop handling of writes is *very* problematic (this is causing
failed tests). Switch to doing it the correct way, whatever that means
Replace icky socket loopback waker with event based waker (use
Switch everyone to using Free Software so we don't have to deal with
IIRC, sockets can only be registered once. So we switch to a
structure like the poll() reactor, thus allowing us to deal with write
events in a decent fashion. This should allow us to pass tests, but
we're still limited to 64 events.
Instead of doing a reactor, we make this an addon to the select
reactor. The WFMO event loop runs in a separate thread. This means no
need to maintain separate code for networking, 64 event limit doesn't
apply to sockets, we can run processes and other win32 stuff in default
event loop. The only problem is that we're stuck with the icky socket
based waker. Another benefit is that this could be extended to support
>64 events in a simpler manner than the previous solution.
The 2nd solution is probably what will get implemented.