@classmethod
def from_server_socket(cls, server, **kwargs):
    """Return a session for the next connection to the given socket."""
    client, _ = server.accept()
    return cls(client, ownsock=True, **kwargs)
