Unverified Commit 1eca933d authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #5598 from lamby/dont-treat-unsupported-protocols-as-fatal-errors

Don't treat unsupported protocols as fatal errors
parents 1dd8d2c7 fbff3514
...@@ -1961,6 +1961,10 @@ int listenToPort(int port, int *fds, int *count) { ...@@ -1961,6 +1961,10 @@ int listenToPort(int port, int *fds, int *count) {
"Creating Server TCP listening socket %s:%d: %s", "Creating Server TCP listening socket %s:%d: %s",
server.bindaddr[j] ? server.bindaddr[j] : "*", server.bindaddr[j] ? server.bindaddr[j] : "*",
port, server.neterr); port, server.neterr);
if (errno == ENOPROTOOPT || errno == EPROTONOSUPPORT ||
errno == ESOCKTNOSUPPORT || errno == EPFNOSUPPORT ||
errno == EAFNOSUPPORT || errno == EADDRNOTAVAIL)
continue;
return C_ERR; return C_ERR;
} }
anetNonBlock(NULL,fds[*count]); anetNonBlock(NULL,fds[*count]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment