patch from nicholas piper to catch keepalives sent to the client
This commit is contained in:
parent
9819087210
commit
c278de9fd4
|
@ -1686,6 +1686,10 @@ class Transport (threading.Thread):
|
||||||
kind = m.get_string()
|
kind = m.get_string()
|
||||||
self._log(DEBUG, 'Received global request "%s"' % kind)
|
self._log(DEBUG, 'Received global request "%s"' % kind)
|
||||||
want_reply = m.get_boolean()
|
want_reply = m.get_boolean()
|
||||||
|
if not self.server_mode:
|
||||||
|
self._log(DEBUG, 'Rejecting "%s" channel request from server.' % kind)
|
||||||
|
ok = False
|
||||||
|
else:
|
||||||
ok = self.server_object.check_global_request(kind, m)
|
ok = self.server_object.check_global_request(kind, m)
|
||||||
extra = ()
|
extra = ()
|
||||||
if type(ok) is tuple:
|
if type(ok) is tuple:
|
||||||
|
|
Loading…
Reference in New Issue