We don't need to know about non-fatal errors from setting socket options
Этот коммит содержится в:
родитель
a013f3059f
Коммит
095a8fa684
@ -88,7 +88,8 @@ static void set_keepalive(int sd)
|
|||||||
/* Set the option active */
|
/* Set the option active */
|
||||||
option = 1;
|
option = 1;
|
||||||
if (setsockopt(sd, SOL_SOCKET, SO_KEEPALIVE, &option, optlen) < 0) {
|
if (setsockopt(sd, SOL_SOCKET, SO_KEEPALIVE, &option, optlen) < 0) {
|
||||||
opal_output(0, "[%s:%d] setsockopt(SO_KEEPALIVE) failed: %s (%d)",
|
opal_output_verbose(5, orte_oob_base_framework.framework_output,
|
||||||
|
"[%s:%d] setsockopt(SO_KEEPALIVE) failed: %s (%d)",
|
||||||
__FILE__, __LINE__,
|
__FILE__, __LINE__,
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
@ -99,7 +100,8 @@ static void set_keepalive(int sd)
|
|||||||
if (setsockopt(sd, IPPROTO_TCP, TCP_KEEPALIVE,
|
if (setsockopt(sd, IPPROTO_TCP, TCP_KEEPALIVE,
|
||||||
&mca_oob_tcp_component.keepalive_time,
|
&mca_oob_tcp_component.keepalive_time,
|
||||||
sizeof(mca_oob_tcp_component.keepalive_time)) < 0) {
|
sizeof(mca_oob_tcp_component.keepalive_time)) < 0) {
|
||||||
opal_output(0, "[%s:%d] setsockopt(TCP_KEEPALIVE) failed: %s (%d)",
|
opal_output_verbose(5, orte_oob_base_framework.framework_output,
|
||||||
|
"[%s:%d] setsockopt(TCP_KEEPALIVE) failed: %s (%d)",
|
||||||
__FILE__, __LINE__,
|
__FILE__, __LINE__,
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
@ -110,7 +112,8 @@ static void set_keepalive(int sd)
|
|||||||
if (setsockopt(sd, IPPROTO_TCP, TCP_KEEPIDLE,
|
if (setsockopt(sd, IPPROTO_TCP, TCP_KEEPIDLE,
|
||||||
&mca_oob_tcp_component.keepalive_time,
|
&mca_oob_tcp_component.keepalive_time,
|
||||||
sizeof(mca_oob_tcp_component.keepalive_time)) < 0) {
|
sizeof(mca_oob_tcp_component.keepalive_time)) < 0) {
|
||||||
opal_output(0, "[%s:%d] setsockopt(TCP_KEEPIDLE) failed: %s (%d)",
|
opal_output_verbose(5, orte_oob_base_framework.framework_output,
|
||||||
|
"[%s:%d] setsockopt(TCP_KEEPIDLE) failed: %s (%d)",
|
||||||
__FILE__, __LINE__,
|
__FILE__, __LINE__,
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
@ -122,7 +125,8 @@ static void set_keepalive(int sd)
|
|||||||
if (setsockopt(sd, IPPROTO_TCP, TCP_KEEPINTVL,
|
if (setsockopt(sd, IPPROTO_TCP, TCP_KEEPINTVL,
|
||||||
&mca_oob_tcp_component.keepalive_intvl,
|
&mca_oob_tcp_component.keepalive_intvl,
|
||||||
sizeof(mca_oob_tcp_component.keepalive_intvl)) < 0) {
|
sizeof(mca_oob_tcp_component.keepalive_intvl)) < 0) {
|
||||||
opal_output(0, "[%s:%d] setsockopt(TCP_KEEPINTVL) failed: %s (%d)",
|
opal_output_verbose(5, orte_oob_base_framework.framework_output,
|
||||||
|
"[%s:%d] setsockopt(TCP_KEEPINTVL) failed: %s (%d)",
|
||||||
__FILE__, __LINE__,
|
__FILE__, __LINE__,
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
@ -134,7 +138,8 @@ static void set_keepalive(int sd)
|
|||||||
if (setsockopt(sd, IPPROTO_TCP, TCP_KEEPCNT,
|
if (setsockopt(sd, IPPROTO_TCP, TCP_KEEPCNT,
|
||||||
&mca_oob_tcp_component.keepalive_probes,
|
&mca_oob_tcp_component.keepalive_probes,
|
||||||
sizeof(mca_oob_tcp_component.keepalive_probes)) < 0) {
|
sizeof(mca_oob_tcp_component.keepalive_probes)) < 0) {
|
||||||
opal_output(0, "[%s:%d] setsockopt(TCP_KEEPCNT) failed: %s (%d)",
|
opal_output_verbose(5, orte_oob_base_framework.framework_output,
|
||||||
|
"[%s:%d] setsockopt(TCP_KEEPCNT) failed: %s (%d)",
|
||||||
__FILE__, __LINE__,
|
__FILE__, __LINE__,
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
@ -149,7 +154,8 @@ void orte_oob_tcp_set_socket_options(int sd)
|
|||||||
optval = 1;
|
optval = 1;
|
||||||
if (setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *)&optval, sizeof(optval)) < 0) {
|
if (setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *)&optval, sizeof(optval)) < 0) {
|
||||||
opal_backtrace_print(stderr, NULL, 1);
|
opal_backtrace_print(stderr, NULL, 1);
|
||||||
opal_output(0, "[%s:%d] setsockopt(TCP_NODELAY) failed: %s (%d)",
|
opal_output_verbose(5, orte_oob_base_framework.framework_output,
|
||||||
|
"[%s:%d] setsockopt(TCP_NODELAY) failed: %s (%d)",
|
||||||
__FILE__, __LINE__,
|
__FILE__, __LINE__,
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
@ -158,7 +164,8 @@ void orte_oob_tcp_set_socket_options(int sd)
|
|||||||
#if defined(SO_SNDBUF)
|
#if defined(SO_SNDBUF)
|
||||||
if (mca_oob_tcp_component.tcp_sndbuf > 0 &&
|
if (mca_oob_tcp_component.tcp_sndbuf > 0 &&
|
||||||
setsockopt(sd, SOL_SOCKET, SO_SNDBUF, (char *)&mca_oob_tcp_component.tcp_sndbuf, sizeof(int)) < 0) {
|
setsockopt(sd, SOL_SOCKET, SO_SNDBUF, (char *)&mca_oob_tcp_component.tcp_sndbuf, sizeof(int)) < 0) {
|
||||||
opal_output(0, "[%s:%d] setsockopt(SO_SNDBUF) failed: %s (%d)",
|
opal_output_verbose(5, orte_oob_base_framework.framework_output,
|
||||||
|
"[%s:%d] setsockopt(SO_SNDBUF) failed: %s (%d)",
|
||||||
__FILE__, __LINE__,
|
__FILE__, __LINE__,
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
@ -167,7 +174,8 @@ void orte_oob_tcp_set_socket_options(int sd)
|
|||||||
#if defined(SO_RCVBUF)
|
#if defined(SO_RCVBUF)
|
||||||
if (mca_oob_tcp_component.tcp_rcvbuf > 0 &&
|
if (mca_oob_tcp_component.tcp_rcvbuf > 0 &&
|
||||||
setsockopt(sd, SOL_SOCKET, SO_RCVBUF, (char *)&mca_oob_tcp_component.tcp_rcvbuf, sizeof(int)) < 0) {
|
setsockopt(sd, SOL_SOCKET, SO_RCVBUF, (char *)&mca_oob_tcp_component.tcp_rcvbuf, sizeof(int)) < 0) {
|
||||||
opal_output(0, "[%s:%d] setsockopt(SO_RCVBUF) failed: %s (%d)",
|
opal_output_verbose(5, orte_oob_base_framework.framework_output,
|
||||||
|
"[%s:%d] setsockopt(SO_RCVBUF) failed: %s (%d)",
|
||||||
__FILE__, __LINE__,
|
__FILE__, __LINE__,
|
||||||
strerror(opal_socket_errno),
|
strerror(opal_socket_errno),
|
||||||
opal_socket_errno);
|
opal_socket_errno);
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user