Handle ECONNABORTED errors from accept() - #284
Open
asomers wants to merge 1 commit into
Open
Conversation
accept() may return ECONNABORTED if the connection got dropped while still on the listen queue. This is a non-fatal error; the listening socket will continue to work. If such a thing happens, log the error and continue to service new connections. Fixes tiny-http#283
eesekaj
added a commit
to eesekaj/tiny-http-fork
that referenced
this pull request
Aug 1, 2026
Forked from https://github.com/tiny-http/tiny-http Since the crate was forked the following was implemented: - fix [CVE-2026-66753](tiny-http#288) - fix [CVE-2026-66752](tiny-http#287) - merged [ECONNABORTED triggers a server shutdown](tiny-http#283) - merged [Handle ECONNABORTED errors from accept()](tiny-http#284) - merged [fix: Make sure that the connection is indeed closed at the end of request](tiny-http#282) but later rejected because it is breaking tests and this is a wrong way - updated crate versions - updated SSL/TLS subsystem - code cleanup (partly) Implemented LLM policy: - AI (LLM) generated sloppy code is prohibited. AI (LLM) generates slop "a priori" (anyway). - It is strongly discouraged from using the AI based tools to write or enhance the code. AI slope would 100% violate the license by introducing the 3rd party licensed code. This code will never be accepted. - It is ok to use the AI (LLM) for consultation purposes i.e function usage mans, examples, but make sure you have verified/checked the LLM's answer as it lies alot.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
accept() may return ECONNABORTED if the connection got dropped while still on the listen queue. This is a non-fatal error; the listening socket will continue to work. If such a thing happens, log the error and continue to service new connections.
Fixes #283