Timeout of queued messages #1022
Replies: 1 comment 1 reply
-
This is correct; I suppose we could make futures cancellable up to the point where they're passed to the OS network stack, but that's often a very short window in practice.
In the sense I think you're asking about, no. But please let me refer you to the best practices page on the wiki, and the "flow control" section in particular. It may be that your use case is best served by using something between your existing application layer and Pushy to control the rate at which you're sending (and possibly enqueuing) notifications. |
Beta Was this translation helpful? Give feedback.
-
We're using Pushy in both a async and synchronous mode and want to be able to handle connection issues for the synchronous messages as w recently ran out of threads.
Part of our solution is going to be to add a timeout to the get to prevent our threads locking but from other questions it seems cancelling the future doesn't cancel the message to be sent.
Could I confirm this statement, and if we can't cancel message using the future do we have any control on how long a message should be queued before timing out.
Beta Was this translation helpful? Give feedback.
All reactions