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
This PR removes the direct call to Task.Dispose in QuickFIXn/SocketReader.cs fixes#1025
The task does not always reach a completed state before the 1s timeout is reached and Dispose is called.
I don't believe that we strictly need to dispose the task here as the CancellationToken is cancelled. The task should complete eventually.
This PR removes the direct call to Task.Dispose in QuickFIXn/SocketReader.cs fixes #1025
The task does not always reach a completed state before the 1s timeout is reached and Dispose is called. I don't believe that we strictly need to dispose the task here as the CancellationToken is cancelled. The task should complete eventually.
That's true .Dispose() isn't needed since .net 4.5, just set it back to null? However, as is the change would eliminate the 1 second delay, isn't it?
Also, in SocketInittiatorThread you have the same pattern.
That's true .Dispose() isn't needed since .net 4.5, just set it back to null? However, as is the change would eliminate the 1 second delay, isn't it?
Also, in SocketInittiatorThread you have the same pattern.
Thanks I forgot about the Initiator.
Yes, there shouldn't be a performance impact and socket disconnects shouldn't be happening frequently.
I should've linked this blog.
You're right about the 1s delay. We need that to allow any existing wait op to complete.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes the direct call to Task.Dispose in
QuickFIXn/SocketReader.csfixes #1025
The task does not always reach a completed state before the 1s timeout is reached and
Disposeis called.I don't believe that we strictly need to dispose the task here as the CancellationToken is cancelled. The task should complete eventually.