Skip to content

Commit

Permalink
Merge pull request #47 from denizzzka/tcp_level_error_details
Browse files Browse the repository at this point in the history
HTTP connection handler call: peerAddress added to the error message
  • Loading branch information
s-ludwig authored Nov 11, 2024
2 parents 2979002 + 5d65ef8 commit d4f2619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/http/server.d
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@ private HTTPListener listenHTTPPlain(HTTPServerSettings settings, HTTPServerRequ
auto ret = listenTCP(listen_info.bindPort, (TCPConnection conn) nothrow @safe {
try handleHTTPConnection(conn, listen_info);
catch (Exception e) {
logError("HTTP connection handler has thrown: %s", e.msg);
logError("HTTP connection handler has thrown at the peer %s: %s", conn.peerAddress, e.msg);
debug logDebug("Full error: %s", () @trusted { return e.toString().sanitize(); } ());
try conn.close();
catch (Exception e) logError("Failed to close connection: %s", e.msg);
Expand Down

0 comments on commit d4f2619

Please sign in to comment.