|can you support max_packets of loop(timeout=1.0, max_packets=1)? [message #1722880]
||Wed, 10 February 2016 01:07
| Masahiro Ohkawa
Registered: February 2016
One of my program with Paho is to receive messages of multiple topics. Processing each topic takes different time, so is each message in a topic.|
To handle multiple messages in parallel, multiple processes are introduced.
Therefore each process receive only one message to handle it. After finishing handling it, such process wants to receive another message. (i.e. PULL model)
To do this, I want Paho to support max_packets of loop(timeout=1.0, max_packets=1).
If there is alternative idea, please let me know.
My proposal is to set None to max_packets as default. If it's None, max_packets is set as it is currently. If the max_packets is set explicitly, use the value.
Powered by FUDForum
. Page generated in 0.02133 seconds