Added a 1-second delay to initial connection in order to allow telnet custom protocol handshakes to complete before server sync. This is a dumb patch that works but it's hardly ideal - but without it, none of the telnet options are properly synced to the server. Making a callback chain for the various handhakes is not trivial, so using this until a more elegant solution can be found.

This commit is contained in:
Griatch 2013-11-12 17:07:35 +01:00
parent 149b06a6a4
commit 295c79d448
3 changed files with 28 additions and 10 deletions

View file

@ -48,7 +48,9 @@ class PortalSessionHandler(SessionHandler):
sessdata = session.get_sync_data()
self.sessions[sessid] = session
# sync with server-side
self.portal.amp_protocol.call_remote_ServerAdmin(sessid,
if self.portal.amp_protocol: # this is a timing issue
print "syncing", sessdata
self.portal.amp_protocol.call_remote_ServerAdmin(sessid,
operation=PCONN,
data=sessdata)
def disconnect(self, session):