Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional ConnectionException because of ObjectDisposedException #35

Open
UptrendsMartijnH opened this issue May 23, 2023 · 0 comments

Comments

@UptrendsMartijnH
Copy link

I am successfully running an integration with this library, however a few times a day I log a ConnectionException with the following stack trace:

System.ObjectDisposedException: Safe handle has been closed
   at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
   at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)
   at Microsoft.Win32.Win32Native.SetEvent(SafeWaitHandle handle)
   at System.Threading.EventWaitHandle.Set()
   at CometD.NetCore.Client.BayeuxClient.UpdateBayeuxClientState(BayeuxClientStateUpdater_createDelegate create, BayeuxClientStateUpdater_postCreateDelegate postCreate) in C:\\projects\\cometd-netcore\\src\\CometD.NetCore\\Client\\BayeuxClient.cs:line 733
   at CometD.NetCore.Client.BayeuxClient.PublishTransportListener.OnMessages(IList`1 messages) in C:\\projects\\cometd-netcore\\src\\CometD.NetCore\\Client\\BayeuxClient.cs:line 767
   at CometD.NetCore.Client.Transport.LongPollingTransport.GetResponseCallback(IAsyncResult asynchronousResult) in C:\\projects\\cometd-netcore\\src\\CometD.NetCore\\Client\\Transport\\LongPollingTransport.cs:line 311

I have been looking through the code and trying to debug this issue but I am unsure what causes this. Has somebody else seen this, or know more about this exception occurring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant