attempt to fix rpc stream connection
This commit is contained in:
parent
97e45a64ea
commit
324d5643f6
2 changed files with 9 additions and 8 deletions
|
|
@ -37,13 +37,14 @@ namespace fc { namespace json {
|
||||||
// std::cerr<<"\n**line size: "<<line.size()<<"\n\n";
|
// std::cerr<<"\n**line size: "<<line.size()<<"\n\n";
|
||||||
// slog( "line size: '%d'", line.size() );
|
// slog( "line size: '%d'", line.size() );
|
||||||
// slog( "%s", line.c_str() );
|
// slog( "%s", line.c_str() );
|
||||||
try {
|
fc::async( [=]() {
|
||||||
fc::value v= fc::json::from_string( line );
|
try {
|
||||||
self.handle_message(v);
|
fc::value v= fc::json::from_string( line );
|
||||||
} catch (...) {
|
self.handle_message(v);
|
||||||
wlog( "%s", fc::except_str().c_str() );
|
} catch (...) {
|
||||||
return;
|
wlog( "%s", fc::except_str().c_str() );
|
||||||
}
|
}
|
||||||
|
});
|
||||||
fc::getline( in, line );
|
fc::getline( in, line );
|
||||||
}
|
}
|
||||||
} catch ( ... ) {
|
} catch ( ... ) {
|
||||||
|
|
|
||||||
2
vendor/CMakeLists.txt
vendored
2
vendor/CMakeLists.txt
vendored
|
|
@ -1,3 +1,3 @@
|
||||||
add_subdirectory( libssh2-1.4.2 )
|
add_subdirectory( libssh2-1.4.2 )
|
||||||
#add_subdirectory( zlib-1.2.7)
|
#add_subdirectory( zlib-1.2.7)
|
||||||
add_subdirectory( sigar )
|
#add_subdirectory( sigar )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue