Skip to content

SocketFrameHandler_0_9 can cause connection thread to crash #7

New issue

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

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

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

occ
Copy link

@occ occ commented Dec 12, 2011

When using .NET 4.0 SocketFrameHandler_0_9.Close() can throw ObjectDisposedException.
Apparently, TcpClient.Close() calls this.Dispose(), which causes the issue.

This patch simply handles the exception and ignores it, since the socket is already closed.

@emile
Copy link

emile commented Jan 31, 2012

Thanks for this patch, however the changes on branch bug24650 are likely to fix this problem. Can you confirm?

@occ
Copy link
Author

occ commented Feb 18, 2012

Looks like it's fixed. Thanks

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

Successfully merging this pull request may close these issues.

3 participants