Correct tcp_not_use_nodelay option processing - change in mca param system incorrectly reversed the original parameter
Thanks to Tetsuya Mishima for detecting it! cmr=v1.7.4:reviewer=jsquyres:subject=Correct tcp_not_use_nodelay option processing This commit was SVN r30157.
Этот коммит содержится в:
родитель
43d6a30693
Коммит
cb31187bbe
@ -11,6 +11,7 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2007-2008 Sun Microsystems, Inc. All rights reserved.
|
* Copyright (c) 2007-2008 Sun Microsystems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
||||||
|
* Copyright (c) 2014 Intel, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -531,9 +532,9 @@ static int mca_btl_tcp_endpoint_recv_connect_ack(mca_btl_base_endpoint_t* btl_en
|
|||||||
|
|
||||||
void mca_btl_tcp_set_socket_options(int sd)
|
void mca_btl_tcp_set_socket_options(int sd)
|
||||||
{
|
{
|
||||||
int optval;
|
|
||||||
#if defined(TCP_NODELAY)
|
#if defined(TCP_NODELAY)
|
||||||
optval = mca_btl_tcp_component.tcp_not_use_nodelay;
|
int optval;
|
||||||
|
optval = !mca_btl_tcp_component.tcp_not_use_nodelay;
|
||||||
if(setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *)&optval, sizeof(optval)) < 0) {
|
if(setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *)&optval, sizeof(optval)) < 0) {
|
||||||
BTL_ERROR(("setsockopt(TCP_NODELAY) failed: %s (%d)",
|
BTL_ERROR(("setsockopt(TCP_NODELAY) failed: %s (%d)",
|
||||||
strerror(opal_socket_errno), opal_socket_errno));
|
strerror(opal_socket_errno), opal_socket_errno));
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user