Skip to content

Avoid closing sockets twice#105

Merged
Goos merged 1 commit into
masterfrom
avoid-double-socket-closures
Jan 27, 2023
Merged

Avoid closing sockets twice#105
Goos merged 1 commit into
masterfrom
avoid-double-socket-closures

Conversation

@Goos
Copy link
Copy Markdown
Contributor

@Goos Goos commented Jan 27, 2023

Either calling shutdown or close on an invalid file descriptor seems to occasionally cause a crash – this makes sure neither of those are called if the socket has already been closed.

@Goos Goos requested a review from BrentMifsud January 27, 2023 22:52
Copy link
Copy Markdown

@BrentMifsud BrentMifsud left a comment

Choose a reason for hiding this comment

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

LGTM

@Goos Goos merged commit b6ea945 into master Jan 27, 2023
@Goos Goos deleted the avoid-double-socket-closures branch January 27, 2023 22:54
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.

2 participants