diff options
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.c')
| -rw-r--r-- | rpc/rpc-transport/socket/src/socket.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index c5e8b889f88..6f566e49345 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -3346,7 +3346,7 @@ reconfigure (rpc_transport_t *this, dict_t *options)          optstr = NULL;          if (dict_get_str (this->options, "tcp-window-size",                            &optstr) == 0) { -                if (gf_string2bytesize (optstr, &windowsize) != 0) { +                if (gf_string2uint64 (optstr, &windowsize) != 0) {                          gf_log (this->name, GF_LOG_ERROR,                                  "invalid number format: %s", optstr);                          goto out; @@ -3467,7 +3467,7 @@ socket_init (rpc_transport_t *this)          optstr = NULL;          if (dict_get_str (this->options, "tcp-window-size",                            &optstr) == 0) { -                if (gf_string2bytesize (optstr, &windowsize) != 0) { +                if (gf_string2uint64 (optstr, &windowsize) != 0) {                          gf_log (this->name, GF_LOG_ERROR,                                  "invalid number format: %s", optstr);                          return -1;  | 
