From 780039f4bfc59a28b2a154124c7a52a11bc89f20 Mon Sep 17 00:00:00 2001 From: IMAMASU Ryohei Date: Wed, 13 Feb 2013 16:00:35 +0900 Subject: [PATCH] enable the timeout in Java --- msgpack-idl/Language/MessagePack/IDL/CodeGen/Java.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/msgpack-idl/Language/MessagePack/IDL/CodeGen/Java.hs b/msgpack-idl/Language/MessagePack/IDL/CodeGen/Java.hs index b92c0ed..535137f 100644 --- a/msgpack-idl/Language/MessagePack/IDL/CodeGen/Java.hs +++ b/msgpack-idl/Language/MessagePack/IDL/CodeGen/Java.hs @@ -172,6 +172,7 @@ public class #{className} { public #{className}(String host, int port, double timeout_sec) throws Exception { EventLoop loop = EventLoop.defaultEventLoop(); c_ = new Client(host, port, loop); + c_.setRequestTimeout((int) timeout_sec); iface_ = c_.proxy(RPCInterface.class); }