use kqueue on FreeBSD
This commit is contained in:
@@ -16,6 +16,11 @@
|
|||||||
##
|
##
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
import sys
|
||||||
|
if sys.platform in ['freebsd8']:
|
||||||
|
from twisted.internet import kqreactor
|
||||||
|
kqreactor.install()
|
||||||
|
|
||||||
import sys, json
|
import sys, json
|
||||||
from twisted.python import log
|
from twisted.python import log
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
@@ -39,4 +44,5 @@ if __name__ == '__main__':
|
|||||||
web = Site(webdir)
|
web = Site(webdir)
|
||||||
reactor.listenTCP(spec.get("webport", 9090), web)
|
reactor.listenTCP(spec.get("webport", 9090), web)
|
||||||
|
|
||||||
|
log.msg("Using Twisted reactor class %s" % str(reactor.__class__))
|
||||||
reactor.run()
|
reactor.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user