From 52a4f21f1aa608b327af5d2e83cf0c0a29ff7c7e Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 2 Mar 2008 17:44:34 -0500 Subject: Handle timeouts. Pass timeout down to port level, and if the communication times out, kill the port and let the supervisor restart it. Also stub in select_count and param_query, conveniently used to test timing out. --- src/mysqlerl_connection.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mysqlerl_connection.erl') diff --git a/src/mysqlerl_connection.erl b/src/mysqlerl_connection.erl index b6015e3..ac0497a 100644 --- a/src/mysqlerl_connection.erl +++ b/src/mysqlerl_connection.erl @@ -45,7 +45,7 @@ handle_call(stop, _From, State) -> {stop, normal, State}; handle_call(Request, _From, State) -> {reply, gen_server:call(port_ref(State#state.sup), - #req{request = Request}), State}. + #req{request = Request}, infinity), State}. handle_cast(_Request, State) -> {noreply, State}. -- cgit v1.2.3