attempt to fix rpc stream connection

This commit is contained in:
Daniel Larimer 2013-02-24 14:35:55 -05:00
parent 97e45a64ea
commit 324d5643f6
2 changed files with 9 additions and 8 deletions

View file

@ -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 ( ... ) {

View file

@ -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 )