'Called by the protocol of an already connected session. This
can be used to sync the session info in a delayed manner, such
as when negotiation and handshakes are delayed.
Args:
session (PortalSession): Session to sync.'

def sync(self, session):

    if (session.sessid and session.server_connected):
        sessdata = session.get_sync_data()
        if self.portal.amp_protocol:
            sessdata = dict(((key, val) for (key, val) in sessdata.items() if (key in ('protocol_key', 'address', 'sessid', 'csessid', 'conn_time', 'protocol_flags', 'server_data'))))
            self.portal.amp_protocol.send_AdminPortal2Server(session, operation=PCONNSYNC, sessiondata=sessdata)
