Commit 2f62a47c authored by jehan's avatar jehan

report IO error in case an http channel is disconnected while a transaction is pending

parent 2e71de96
......@@ -276,10 +276,11 @@ static void channel_state_changed(belle_sip_channel_listener_t *obj, belle_sip_c
case BELLE_SIP_CHANNEL_RETRY:
break;
case BELLE_SIP_CHANNEL_ERROR:
case BELLE_SIP_CHANNEL_DISCONNECTED: //disconnect can also be seen as an io error, specially if transaction are pending
http_channel_context_handle_io_error(ctx, chan);
BCTBX_NO_BREAK; /*intentionally no break*/
case BELLE_SIP_CHANNEL_DISCONNECTED:
if (!chan->force_close) provider_remove_channel(ctx->provider,chan);
if (!chan->force_close) {
provider_remove_channel(ctx->provider,chan);
}
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment