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); }