eclipse / paho.golang

Go libraries
Other
330 stars 92 forks source link

sendquota did not handle context cancellation correctly #197

Closed MattBrittan closed 10 months ago

MattBrittan commented 10 months ago

If the context was cancelled whilst Acquire was waiting, then the request remained in the queue and would gain (and never release) the next slot. This would lead to a deadlock.