From f0cf2a37456034d699b396b7f9cdd28ba467500e Mon Sep 17 00:00:00 2001 From: eletuchy Date: Wed, 27 Feb 2008 19:27:41 +0000 Subject: [PATCH] [thrift] erlang: dialyzer bug: tSocket reading of send_timeout preference Reviewed By: cpiro Test Plan: make dialyzer Revert Plan: sure git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665526 13f79535-47bb-0310-9956-ffa450edef68 --- lib/erl/src/transport/tSocket.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} ],