Add sessionhandler.portal_disconnect_all to remove another needless call between server and portal on logout. This means logout from either side will clean up on the respective side and then inform the other side once, rather than triggering a return call.

This commit is contained in:
Griatch 2016-09-13 21:48:43 +02:00
parent 8eb500f8e0
commit 86c970eb62
7 changed files with 54 additions and 9 deletions

View file

@ -506,7 +506,7 @@ if WEBSERVER_ENABLED:
# Start a django-compatible webserver.
from twisted.python import threadpool
from evennia.server.webserver import DjangoWebRoot, WSGIWebServer, NonLoggingSite
from evennia.server.webserver import DjangoWebRoot, WSGIWebServer, Website
# start a thread pool and define the root url (/) as a wsgi resource
# recognized by Django
@ -522,7 +522,7 @@ if WEBSERVER_ENABLED:
# custom overloads
web_root = WEB_PLUGINS_MODULE.at_webserver_root_creation(web_root)
web_site = NonLoggingSite(web_root, logPath=settings.HTTP_LOG_FILE)
web_site = Website(web_root, logPath=settings.HTTP_LOG_FILE)
for proxyport, serverport in WEBSERVER_PORTS:
# create the webserver (we only need the port for this)