Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions gloo/transport/tcp/pair.cc
Original file line number Diff line number Diff line change
Expand Up @@ -534,17 +534,29 @@ bool Pair::read() {
}

// Unexpected error
signalException(
GLOO_ERROR_MSG("Read error ", peer_.str(), ": ", strerror(errno)));
signalException(GLOO_ERROR_MSG(
"Read error ",
peer_.str(),
": ",
strerror(errno),
". ",
"This is typically caused by a remote worker hanging or bugs in the application. ",
"Check the logs of the remote worker before reporting an error. ",
"GLHF! 🏖️"));
return false;
}
break;
}

// Transition to CLOSED on EOF
if (rv == 0) {
signalException(
GLOO_ERROR_MSG("Connection closed by peer ", peer_.str()));
signalException(GLOO_ERROR_MSG(
"Connection closed by peer ",
peer_.str(),
". ",
"This is typically caused by a remote worker crashing. ",
"Check the logs of the remote worker before reporting an error. ",
"GLHF! 🏖️"));
return false;
}

Expand Down
Loading