diff options
author | Brian Cully <bjc@kublai.com> | 2008-03-02 17:44:34 -0500 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2008-03-02 17:44:34 -0500 |
commit | 52a4f21f1aa608b327af5d2e83cf0c0a29ff7c7e (patch) | |
tree | 0e3c3e48c3d192d736e07718b88032f5e5a5cf82 /src/mysqlerl_connection.erl | |
parent | 2891b40b3a7799f67ba83c4914500cba7ca8aa1c (diff) | |
download | mysqlerl-52a4f21f1aa608b327af5d2e83cf0c0a29ff7c7e.tar.gz mysqlerl-52a4f21f1aa608b327af5d2e83cf0c0a29ff7c7e.zip |
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.
Diffstat (limited to 'src/mysqlerl_connection.erl')
-rw-r--r-- | src/mysqlerl_connection.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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}. |