-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publish blocks entire program #531
Comments
I have similar issue. I use loop_start and on_message callback. The callback publishes new messages on different topic. I also have a "while True" loop, which publishes something from time to time. It seems that when these two try to publish at the same time, the publish metod hangs and doesn't return. |
Could you both take a look at the |
hi @ralight when 1.6.x release? |
I'm planning a release around the end of September. |
I had a similar problem where the |
I'm getting the same thing. |
I have a really difficult problem.
I'm using paho-mqtt inside python 3.7 on mosquitto broker at an ubuntu 18.03 system. The program is a bridge between two brokers (which could surely be solved via mosquitto directly, but I did it this way).
One special defined publish command of one client object irregularely hangs the entire program, i.e. starts but doesn't come back. Even timer events are blocked. The only solution is to kill the program from outside. The command itself is obviously ok, since I can send a hundred of publishes without problem. Also try-catch doesn't help, since the pogram hangs. No other publish command of both client object in the program shows this behaviour.
Is there any chance to analyze what happens?
EDIT: I added a threading.Semaphore() on friday - during weekend all seemed to be stable. Migth this be a hint?
EDIT2: Also with semaphore the call to publish blocks / hangs the program.
The text was updated successfully, but these errors were encountered: