Publishing on Jet Stream hangs indefinitely if the server is unreachable #1000
paagamelo2
started this conversation in
General
Replies: 1 comment
-
|
Thanks for reporting this @paagamelo2 yes I can confirm publish (in general) is blocking until connection is reestablished. I have a PR #1001 to fix this. I put it behind an option to keep the existing behavior in tact as no doubt applications would be relying on this. Let me know if you can try #1001 and works as you expect. Make sure to use the new option |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hiya, I've noticed that sometimes,
INatsJsContext.PublishAsynchangs indefinitely if the server is down or not reachable, as opposed to timing out after the request timeout expires.That only happens in case a cancellation token is not provided. When providing a cancellation token, the task gets killed as expected. While that is a good enough workaround for me, I feel like the client's behavior should be consistent in case a cancellation token is not provided, and the caller relies on the request timeout being enforced.
Apologies for the lack of details, I didn't investigate this much admittedly, but I definitely saw this behavior consistently. Is this something you're aware of?
Beta Was this translation helpful? Give feedback.
All reactions