Hey,
I just posted this on StackOverflow, thought I'd post it here too.

http://stackoverflow.com/questions/8377185/c2dm-frequent-timeouts-or-errors-when-sending-webservice-does-not-respond

So I have set up a connection to Googles C2DM system. It works - sort
of.

When I ask C2DM to "ping" my Android device, it does so sometimes, but
far from always. The problem shows itself on the server-side of
things.

Usually, the first "ping" (after the server has started) goes through.
I get a response immediately after I call the webservice and shortly
thereafter the "ping" shows up on my Android device.

However, if I shortly after the first "ping" again tell my server to
send a "ping", the webservice call fails. It never manages to call the
C2DM and after a while I get a WebException (C#) saying the following:

The underlying connection was closed: An unexpected error occurred on
a receive.

No other information is there. If I then try to send again, also that
call is blocked.

I change nothing in the code, sometimes it manages to call the
webservice and sometimes it doesnt. It seems to me there is a
"timeout" for calling the Google webservice. If you call it, you need
to wait for X seconds before calling again otherwise it just won't
return an answer and give the exception. Thats just a guess...

Any ideas?

The code I am using to send can be found at SO:
http://stackoverflow.com/questions/8377185/c2dm-frequent-timeouts-or-errors-when-sending-webservice-does-not-respond

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to