Ticket #296: test.diff

File test.diff, 1.5 KB (added by jinmei, 9 years ago)
  • src/lib/cc/session.cc

     
    147147SessionImpl::setResult(bool* result, asio::error_code* result_code, const asio::error_code& b) {
    148148    // if the 'error' is operation_aborted (i.e. a call to cancel()),
    149149    // we do not consider the read or the wait 'done'.
     150    cout << "SessionImpl::setResult called for " << this << ", result_code at " << result_code << ":" << result_code->message() << endl;
    150151    if (b != asio::error::operation_aborted) {
    151152        *result_code = b;
    152153        *result = true;
  • src/bin/auth/main.cc

     
    183183        cc_session = new Session(io_service->get_io_service());
    184184        cout << "[b10-auth] Configuration session channel created." << endl;
    185185
     186        try {
    186187        config_session = new ModuleCCSession(specfile, *cc_session,
    187188                                             my_config_handler,
    188189                                             my_command_handler);
     
    200201        // from auth_server, and create io_service, auth_server, and
    201202        // sessions in that order.
    202203        auth_server->setXfrinSession(xfrin_session);
     204        } catch (...) {}
    203205        auth_server->setConfigSession(config_session);
    204206        auth_server->updateConfig(ElementPtr());
    205207