How to cancel timed out queueBind #1079
Replies: 4 comments
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
Open a new channel as "pipelining is not supported" is likely a channel-level exception. |
Beta Was this translation helpful? Give feedback.
-
I have a code here that shows the problem: First Bind takes long to finish, then there is a timeout and then a bunch of pipeline failures and then some success (I guess it somehow got recovered). I would like to understand this behaviour. (For me it seems like some side thread doing all the work, and there is some non blocking swap which must be first consumed until I can do another call) RabbitMq is started on my virtualbox machine with docker
|
Beta Was this translation helpful? Give feedback.
-
Ok I realised that I must use SemaphoreSlim , probabbly the RabbitMQ async worker is using the same thread pool. Perhaps it might be good to mention in the documentation regarding sharing channel between threads to use SemaphoreSlim and not lock in case of async programs |
Beta Was this translation helpful? Give feedback.
-
Hi my question is how do I recover from situation where the
_channel.QueueBind(
returns timeout for some reason. Because for my situation, if i do many queueBind in a row and if one times out, the next returns Pipelining is not supported. How do I recover from such situation?
Beta Was this translation helpful? Give feedback.
All reactions