Skip to content

umqtt.simple check_msg() leaves socket in nonblocking state #84

@peterhinch

Description

@peterhinch

This causes failure in a subsequent call to subscribe() as reported here. The following (tested) fix is one option:

    def check_msg(self):
        self.sock.setblocking(False)
        result = self.wait_msg()
        self.sock.setblocking(True)
        return result

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