[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
This commit is contained in:
eletuchy 2008-02-27 19:27:41 +00:00
parent 53e571968f
commit f0cf2a3745

View File

@ -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}
],