Skip to content

Avoid panic if remote_addr has hung up - #285

Open
nickwood wants to merge 1 commit into
tiny-http:masterfrom
nickwood:master
Open

Avoid panic if remote_addr has hung up#285
nickwood wants to merge 1 commit into
tiny-http:masterfrom
nickwood:master

Conversation

@nickwood

@nickwood nickwood commented Oct 14, 2025

Copy link
Copy Markdown

This was rarely crashing due to:
called Result::unwrap() on an Err value: Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }

tiny_http::client::ClientConnection::read (client.rs:153)
tiny_http::client::ClientConnection::next (client.rs:187)
tiny_http::Server::from_listener::{{closure}}::{{closure}} (lib.rs:333)

This was rarely crashing in due to:
called `Result::unwrap()` on an `Err` value: Os { code: 107, kind: NotConnected,
message: "Transport endpoint is not connected" }

tiny_http::client::ClientConnection::read (client.rs:153)
tiny_http::client::ClientConnection::next (client.rs:187)
tiny_http::Server::from_listener::{{closure}}::{{closure}} (lib.rs:333)
eesekaj added a commit to eesekaj/tiny-http-fork that referenced this pull request Jul 30, 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.

1 participant