Export to GitHub

apns-sharp - issue #44

Intermittent error and missing notifications: Error: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.


Posted on Dec 15, 2010 by Quick Giraffe

What steps will reproduce the problem? 1.Send one notification to 9 different devices 2. 3.

What is the expected output? What do you see instead? All notifications are delivered.

What version of the product are you using? On what operating system? Not sure. I downloaded the latest version about 2 months ago in Oct 2010. Windows Server 2008 Standard. W2k3 R2. This repros on two different machines.

Please provide any additional information below. I noticed at least one notification is missing on the device. The missing notification was queued successfully and success callback is called for that missing notification.

I am getting this intermittent errors: Error: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.

But if I change the logic to send to only that problematic device, it works fine.

Comment #1

Posted on Dec 15, 2010 by Quick Giraffe

Do I have to sleep between queueing of each notifications? I noticed the test example sleep for 15 seconds.

Comment #2

Posted on Dec 15, 2010 by Happy Lion

You could be sending a bad device token or otherwise malformed notification if this happens...

Comment #3

Posted on Dec 17, 2010 by Quick Giraffe

Hi, Thanks for the reply. I double check the device token and notification fields and they are correct. The successful call back service_NotificationSuccess() is called. I changed the logic to send out only one notification and it works fine. But when I send out a batch including the same notification I just sent, the same notification didn't get sent and got the above error.

Comment #4

Posted on Feb 14, 2011 by Happy Lion

Just because the NotificationSuccess is called, unfortunately does not conclusively mean that it was sent...

You'll need to do some debugging and see which message is failing, then dissect why exactly (in terms of looking at the bytes and comparing them to the apple spec) what's wrong with the message (assuming you're getting a disconnection after this message).

Comment #5

Posted on Apr 22, 2013 by Helpful Lion

i am facing the same issue, i get that error message back.. did anyone find a solution?

Comment #6

Posted on Jan 10, 2014 by Happy Wombat

Same happens to me... only get's this error in batch sending. otherwise everything works fine.

Status: Invalid

Labels:
Type-Defect Priority-Medium