Skip to content

Conversation

@TRoetz
Copy link

@TRoetz TRoetz commented Jul 11, 2017

Try Catch block required for dead socket when write completes and updated gitIgnore to exclude .vs folder.

@TRoetz
Copy link
Author

TRoetz commented Jul 13, 2017

I changed it so it now respects your spacing(tabs).

{
state = new RequestState(SendPdu(request));
_RequestsAwaitingResponse.Add(state.SequenceNumber, state);
if (!_RequestsAwaitingResponse.ContainsKey(state.SequenceNumber))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am afraid this is still racy.. We will need to use some kind of concurrent dictionary or wrap this contains+add logic within a lock() {} statement.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay - I will wrap it up into a concurrent dictionary, with TryAddUpdates.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Why is it not accepted to master?

@fruize fruize mentioned this pull request Dec 7, 2021
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

Successfully merging this pull request may close these issues.

4 participants