Replies: 3 comments 1 reply
-
@ElAdriano closing a channel is a network roundtrip. There is no additional delay enforced in the protocol (something akin to the I can see how closing a channel could take 10s on a very busy or blocked connection. If you open and close channels at a high rate, I'm afraid you have lost massively "on performance" to begin with. A round-trip to the server cannot be avoided (it must close its side of the channel, too, not doing so is a resource leak). You simply cannot beat using long-lived channels, the way the protocol expects them to be used. |
Beta Was this translation helpful? Give feedback.
-
Oh, this delay in the .NET client specifically is news to me. I don't know why it does that. Other clients do not. Given the ongoing on work on making this client as async as practically possible, I'd not be surprised if that goes away by 8.0. |
Beta Was this translation helpful? Give feedback.
-
@ElAdriano the code to which you linked waits a maximum of 10 seconds for the close response from the server. In normal scenarios, the wait time is in the low millisecond range. If you consistently hit the 10 second wait in your environment, then you have an issue in your environment preventing the |
Beta Was this translation helpful? Give feedback.
-
Hello, my question is related to this channel close logic.
I wonder why it's necessary to wait 10 seconds for it to be closed. As I understand the implemented flow - actual channel close is done here. Then, why it's necessary to wait so much time?
Is there any way to skip this (and not lose on performance)?
Thank You for help in advance :)
Beta Was this translation helpful? Give feedback.
All reactions