w250697116 / apns-sharp

Automatically exported from code.google.com/p/apns-sharp
0 stars 0 forks source link

First message don´t get trough #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Sendig a message for the first time after updating the webservice
2. Sending a message when no messega has been sent for about 3-5 hours
3.

What is the expected output? What do you see instead?
No messgae gets sent, no event from the get fired for exemple: private void 
service_Connecting(object sender)

What version of the product are you using? On what operating system?
1.0.3.0, windows server 2008, .net 3.5, WCF webservice

Please provide any additional information below.

Original issue reported on code.google.com by jonbarri...@gmail.com on 28 Apr 2010 at 10:13

GoogleCodeExporter commented 8 years ago
Issue 28 has been merged into this issue.

Original comment by jond...@gmail.com on 28 Apr 2010 at 12:24

GoogleCodeExporter commented 8 years ago
First a big thank you to the author of the apns-sharp for the great work on the 
whole library. It saves me lots of time in learning and coding!

Well, I had the same problem too. The trouble maker is in class 
NotificationConnection.cs at method Close().
The worker thread is actually sleeping for 500 instead 100 as stated in the 
remarks 
of this method. But Close() only waits for 250. Bring those values in harmony 
and it 
works just fine.
The reason why it works as console application and not as webservice, is simply 
the 
fact, that the race conditions are in favour of the console application.

Hope that helps.
Cheers
Thomas

Original comment by thomas...@gmx.net on 8 May 2010 at 10:20

GoogleCodeExporter commented 8 years ago
A very big thanks for the help, now it works perfectly!!

Original comment by jonbarri...@gmail.com on 18 May 2010 at 7:47

GoogleCodeExporter commented 8 years ago

Original comment by jond...@gmail.com on 19 May 2010 at 11:11