Commit 1ffd8905 authored by jehan's avatar jehan

add trace to display when belle_sip_handler_send_chunck return 0 bytes

parent e617403e
......@@ -1073,6 +1073,8 @@ static void _send_message(belle_sip_channel_t *obj){
do{
max_body_len=sizeof(buffer)-1-len;
ret=belle_sip_body_handler_send_chunk(bh,msg,(uint8_t*)buffer+len,&max_body_len);
if (max_body_len==0)
belle_sip_warning("belle_sip_body_handler_send_chunk on channel [%p], 0 bytes read",obj);
len+=max_body_len;
}while(ret==BELLE_SIP_CONTINUE);
belle_sip_body_handler_end_transfer(bh);
......
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