Skip to content

Commit

Permalink
Merge pull request #438 from evoskuil/master
Browse files Browse the repository at this point in the history
No log error::connect_failed on send with peer drop (linux).
  • Loading branch information
evoskuil authored Oct 25, 2024
2 parents cc4c0da + 89724f4 commit f03297c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/net/proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ void proxy::handle_write(const code& ec, size_t,

if (ec)
{
if (ec != error::peer_disconnect && ec != error::operation_canceled)
// Linux reports error::connect_failed when peer drops here.
if (ec != error::peer_disconnect && ec != error::operation_canceled &&
ec != error::connect_failed)
{
LOGF("Send failure " << heading::get_command(*payload) << " to ["
<< authority() << "] (" << payload->size() << " bytes) "
Expand Down

0 comments on commit f03297c

Please sign in to comment.