Repository: thrift Updated Branches: refs/heads/master 1dc265301 -> 7fc33be18
THRIFT-3085 thrift_reconnecting_client never tries to reconnect CLient: Erlang Patch: NOMORECOFFEE <[email protected]> This closes #427 gen_server does not handle message try_connect after unsuccessful connection, and gen_server always return {error, noconn} Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/7fc33be1 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/7fc33be1 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/7fc33be1 Branch: refs/heads/master Commit: 7fc33be18cdf995ac8b0845897f9b4ea3228c50f Parents: 1dc2653 Author: Jens Geyer <[email protected]> Authored: Mon Apr 6 17:51:24 2015 +0200 Committer: Jens Geyer <[email protected]> Committed: Mon Apr 6 17:51:24 2015 +0200 ---------------------------------------------------------------------- lib/erl/src/thrift_reconnecting_client.erl | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/7fc33be1/lib/erl/src/thrift_reconnecting_client.erl ---------------------------------------------------------------------- diff --git a/lib/erl/src/thrift_reconnecting_client.erl b/lib/erl/src/thrift_reconnecting_client.erl index 8ff1941..9dd627a 100644 --- a/lib/erl/src/thrift_reconnecting_client.erl +++ b/lib/erl/src/thrift_reconnecting_client.erl @@ -156,6 +156,9 @@ handle_cast( _Msg, State ) -> %% {stop, Reason, State} %% Description: Handling all non call/cast messages %%-------------------------------------------------------------------- +handle_info( try_connect, State ) -> + { noreply, try_connect( State ) }; + handle_info( _Info, State ) -> { noreply, State }.
