Skip to content

Commit 198d106

Browse files
committed
Added code for Queueing a message upon backoff from server or web
exception.
1 parent 0d30592 commit 198d106

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

C2dmSharp.Server/C2dmService.cs

+3
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ private void messageTransportWork(object state)
315315
}
316316
catch (ServiceUnavailableTransportException suEx)
317317
{
318+
//Enqueue the message again to resend later
319+
QueueMessage(toSend);
320+
318321
//Backoff the last retry timespan + new one
319322
lastRetryAfter += suEx.RetryAfter;
320323

0 commit comments

Comments
 (0)