http:request timout issue

MAthuvathanan MOu || மதுவதனன் மௌ cowboymathu@REDACTED
Thu May 6 09:58:07 CEST 2010


Hi All,

I do asynchronous http:request like this

case catch http:request(get,{Login_url,[]}, [{timeout, 360000}], [{sync,
false}]) of
        {ok,RequestId}  ->
            receive
                {http, {RequestId, Result}} ->
                    case Result of
                        {error,etimedout} ->
                            do_something;
                        {error,econnrefused} ->
                            do_something;
                        -------------------------------
                        -------------------------------

Erlang release R13B01

Normally I receive {error, etimeout} after 360 seconds but this time I
received {error, timeout} after 2 seconds. Note that  it is {error, timeout}
not {error, etimeout}. Can someone please explain this case.

Thanks,
-- 
Mathuvathanan Mou.


More information about the erlang-questions mailing list