Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Immediate disconnected after subscribe #11

Closed
pallas opened this issue Aug 1, 2020 · 3 comments
Closed

Immediate disconnected after subscribe #11

pallas opened this issue Aug 1, 2020 · 3 comments

Comments

@pallas
Copy link
Contributor

pallas commented Aug 1, 2020

I'm using the example code, which worked a few weeks ago. Now, it's sending a DISCONNECT right after a SUBACK. I don't know if asyncio-mqtt or paho.mqtt.python changed. Has anyone seen behaviour like

DEBUG:mqtt:Sending CONNECT (u0, p0, wr0, wq0, wf0, c1, k60) client_id=b'2c063326-vpn'
DEBUG:mqtt:Received CONNACK (0, 0)
DEBUG:mqtt:Sending SUBSCRIBE (d0, m1) [(b'prefix/+', 0)]
DEBUG:mqtt:Received SUBACK
DEBUG:mqtt:Sending DISCONNECT

with code like

async with Client(...) as client:
    async with client.filtered_messages(f'{request_prefix}/+') as messages:
        await client.subscribe(f'{request_prefix}/+')
        async for message in messages:
            pass

Currently, it never makes it into the innermost loop.

@pallas
Copy link
Contributor Author

pallas commented Aug 1, 2020

Ok, I figured it out.. it's a python 3.6 issue, see PR #12.

@frederikaalund
Copy link
Collaborator

I figure that now that #12 is merged, this issue is solved too, right? If not, then just let me know and I will try to investigate.

@pallas
Copy link
Contributor Author

pallas commented Aug 1, 2020

That's correct

@pallas pallas closed this as completed Aug 1, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants