Change Confserver to AIOHTTP
Change Confserver to AIOHTTP Better threading and performance across
This commit is contained in:
parent
98068046e9
commit
e3179d36a8
5 changed files with 255 additions and 274 deletions
12
bumper.py
12
bumper.py
|
|
@ -5,8 +5,15 @@ import bumper
|
|||
import sys, socket
|
||||
import time
|
||||
|
||||
logging.basicConfig(level=logging.INFO,
|
||||
format='%(asctime)s %(levelname)-8s %(message)s')
|
||||
|
||||
args = sys.argv
|
||||
if len(args) > 0:
|
||||
if '--debug' in args:
|
||||
logging.basicConfig(level=logging.DEBUG,
|
||||
format='%(asctime)s %(levelname)-8s %(message)s')
|
||||
else:
|
||||
logging.basicConfig(level=logging.INFO,
|
||||
format='%(asctime)s %(levelname)-8s %(message)s')
|
||||
|
||||
#conf_address = (socket.gethostbyname(socket.gethostname()), 443)
|
||||
conf_address = ("0.0.0.0", 443)
|
||||
|
|
@ -32,4 +39,3 @@ conf_server = bumper.ConfServer(conf_address, usessl=True, run_async=True, bumpe
|
|||
# start xmpp server (sync)
|
||||
xmpp_server = bumper.XMPPServer(xmpp_address)
|
||||
|
||||
conf_server.disconnect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue