kdcllc / CometD.NetCore.Salesforce

CometD Salesforce Implementation.
MIT License
45 stars 24 forks source link

Subscribing to multiple (3+) push topics results in an Error #1

Closed briangardner closed 5 years ago

briangardner commented 5 years ago

When I subscribe to 1 or 2 push topics, everything is fine. As soon as I add a 3rd subscription, it will connect to each topic successfully, then disconnect and set workers to 0. It appears to be some type of race condition in the LongPollingTransport GetResponseCallback(IAsyncResult asynchronousResult) method, where cookies are getting added to the exchange at the same time that the collection is being iterated over.