You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the library to send/receive messages to a message broker (ActiveMQ Artemis). Also I have a handler for TaskScheduler.UnobservedTaskException to close the process if any exception occurs.
If I send a message while the connection with the message broker is down, I receive an exception (as expected).
The problem is that I also get an UnobservedTaskException containing a TimeoutException because of it.
The call link.Send can fail, but if that happens, the timer is not disposed and the timeout exception is thrown in an unobserved task.
This king of behavior also happens when the link.Send fails, but onOutcome callback is still fired.
The text was updated successfully, but these errors were encountered:
RusuIonut21
added a commit
to RusuIonut21/amqpnetlite
that referenced
this issue
Jun 6, 2024
I am using the library to send/receive messages to a message broker (ActiveMQ Artemis). Also I have a handler for TaskScheduler.UnobservedTaskException to close the process if any exception occurs.
If I send a message while the connection with the message broker is down, I receive an exception (as expected).
The problem is that I also get an UnobservedTaskException containing a TimeoutException because of it.
It seems that the problem is in SendTask class:
The call link.Send can fail, but if that happens, the timer is not disposed and the timeout exception is thrown in an unobserved task.
This king of behavior also happens when the link.Send fails, but onOutcome callback is still fired.
The text was updated successfully, but these errors were encountered: