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

Fix for https://github.com/pruiz/AberrantSMPP/issues/11 #13

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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).

@@ -622,7 +622,10 @@ public SmppResponse SendRequest(SmppRequest request)
lock (_RequestsAwaitingResponse)
{
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