-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: Added EHOSTUNREACH to retry list #16902
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
#include <seastar/core/future.hh> | ||
#include <seastar/net/tls.hh> | ||
|
||
#include <asm-generic/errno.h> | ||
#include <gnutls/gnutls.h> | ||
|
||
namespace net { | ||
|
@@ -53,6 +54,10 @@ bool is_reconnect_error(const std::system_error& e) { | |
case ECONNABORTED: | ||
case EAGAIN: | ||
case EPIPE: | ||
case EHOSTUNREACH: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if there are any other error codes we could opportunistically add here? E.g.:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I think the other three can be added. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We probably shut down the socket on all manner of alternative errors. At initial glance, I didn't see an abort source which would be more explicit about shutdown. |
||
case EHOSTDOWN: | ||
case ENETRESET: | ||
case ENETDOWN: | ||
return true; | ||
default: | ||
return false; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm pretty sure you should only need
<errno.h>
but the LSP usually doesn't know