id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,branch,branch_author,launchpad_bug
5378,ctrl-c with win32eventreactor waits until next reactor iteration,ivank,,"When I hit ctrl-c in a Twisted program running on win32eventreactor, it waits until the next reactor iteration before stopping the reactor.  Having a LoopingCall leads to faster processing of the ctrl-c.

I'm using this workaround:

{{{
def main():
	import win32api
	def onExit(sig, func=None):
		reactor.callFromThread(reactor.stop)
		return 1
	win32api.SetConsoleCtrlHandler(onExit, True)

	...

	reactor.run()
}}}

I'm using Twisted trunk r33098, CPython 2.7.1 32-bit on Windows 2008R2 SP1.",defect,new,high,,core,,,ivank,,,
