Skip to content

Handle ECONNABORTED errors from accept() - #284

Open
asomers wants to merge 1 commit into
tiny-http:masterfrom
asomers:ECONNABORTED
Open

Handle ECONNABORTED errors from accept()#284
asomers wants to merge 1 commit into
tiny-http:masterfrom
asomers:ECONNABORTED

Conversation

@asomers

@asomers asomers commented Oct 13, 2025

Copy link
Copy Markdown

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

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.
@eesekaj eesekaj mentioned this pull request Aug 2, 2026
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.

ECONNABORTED triggers a server shutdown

1 participant