git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d1b472d
)
try to use iocpreactor to fix "too many file descriptors in select" error on windows
author
Forrest Voight
<forrest@forre.st>
Sat, 14 Apr 2012 16:01:53 +0000 (12:01 -0400)
committer
Forrest Voight
<forrest@forre.st>
Sat, 14 Apr 2012 16:21:07 +0000 (09:21 -0700)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
571ec2a
..
6605940
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-12,6
+12,13
@@
import signal
import traceback
import urlparse
+try:
+ from twisted.internet import iocpreactor
+ iocpreactor.install()
+except:
+ raise
+else:
+ print 'Using IOCP reactor!'
from twisted.internet import defer, reactor, protocol, task
from twisted.web import server
from twisted.python import log