Skip to content

idempotent close #200

Answered by ghost
RefinedSoftwareLLC asked this question in Q&A
Discussion options

You must be logged in to vote

This implementation is not written using a garbage collector so closing a socket releases it. Therefore you need to track this and update whatever data structures you have when you close. The error you get is really just a fallback emergency break to warn you your code is broken. You shouldn't use try catch ideally you should fix your usage.

Remember - this library is written in C and C has a different memory management philosophy which does not use garbage collection.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #200 on December 09, 2020 11:34.