From 1ed6d499b6bf02a399fb32059caccdea847335b0 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 7 May 2014 09:09:13 +0200 Subject: [PATCH] rpc: pass errors from async_accept According to the [boost::asio documentation](http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/reference/basic_socket_acceptor/async_accept/overload2.html), the function signature of the handler must be: void handler( const boost::system::error_code& error // Result of operation. ); We were binding *all* the arguments, instead of all but the error, resulting in nullary function that never got the error. Fix this by adding an input argument substitution. Rebased-By: Wladimir J. van der Laan Rebased-From: 0a0cd34 --- src/rpcserver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index f78cb420f..fb7a28db7 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -457,7 +457,7 @@ static void RPCListen(boost::shared_ptr< basic_socket_acceptor