kopia lustrzana https://github.com/Yakifo/amqtt
rodzic
269b194f5e
commit
7ce1c62637
|
@ -16,7 +16,7 @@ from hbmqtt.utils import format_client_message, gen_client_id
|
|||
_defaults = {
|
||||
'bind-address': 'localhost',
|
||||
'bind-port': 1883,
|
||||
'timeout-disconnect-delay': 10
|
||||
'timeout-disconnect-delay': 2
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -136,6 +136,7 @@ class ProtocolHandler:
|
|||
keepalive_timeout = self.session.keep_alive
|
||||
if keepalive_timeout <= 0:
|
||||
keepalive_timeout = None
|
||||
self.logger.debug("Read keepalive timeout=%s s" % str(keepalive_timeout))
|
||||
fixed_header = yield from asyncio.wait_for(MQTTFixedHeader.from_stream(self.session.reader), keepalive_timeout)
|
||||
if fixed_header:
|
||||
cls = packet_class(fixed_header)
|
||||
|
|
Ładowanie…
Reference in New Issue