Skip to content

allow to set socket timeout #112

Closed
Closed
@vladak

Description

@vladak

The socket timeout is set in

however _get_connect_socket() is called without the timeout argument
self._sock = self._get_connect_socket(self.broker, self.port)
which means the timeout is always 1 - assuming this is in seconds, the doc does not say:
:param int timeout: Desired socket timeout

It would be nice if the socket timeout could be set in the MQTT instance.

After issues like #81 or #110 are fixed, it will be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions