diff --git a/lib/erl/src/transport/tSocket.erl b/lib/erl/src/transport/tSocket.erl index 96b7aa9ca..5f16ded33 100644 --- a/lib/erl/src/transport/tSocket.erl +++ b/lib/erl/src/transport/tSocket.erl @@ -76,7 +76,7 @@ effectful_open(This) -> {reuseaddr, true}, {nodelay, true}, {send_timeout, case application:get_env(thrift, socket_send_timeout) of - Millis when is_integer(Millis), Millis > 0 -> Millis; + {ok, Millis} when is_integer(Millis), Millis > 0 -> Millis; _Else -> 5000 end} ],