Commit 9bdb28c3 authored by Simon Morlat's avatar Simon Morlat

Enable faster retry upon io/error. This is necessary to handle push...

Enable faster retry upon io/error. This is necessary to handle push notifications in background on iOS. When we wake up, the socket is broken and we have to reconnect it immediately.
parent 954e33b9
......@@ -88,9 +88,9 @@ static void retry_later(belle_sip_refresher_t* refresher) {
}
static void retry_later_on_io_error(belle_sip_refresher_t* refresher) {
/*if first retry, sent it in 500 ms*/
/*if first retry, sent it immediately. */
if (refresher->number_of_retry < 1) {
schedule_timer_at(refresher,DEFAULT_INITIAL_RETRY_AFTER_ON_IO_ERROR,RETRY);
schedule_timer_at(refresher,0,RETRY);
refresher->number_of_retry++;
} else {
retry_later(refresher);
......
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