Monday, June 20, 2011

Re: [android-developers] Re: SSL Socket Connection fails after network cut

OK, just because it is very frustrating to see post with unsolved problems, I managed to solve mine, and wanted to let you know.
Actually, after a disconnection, the socket was closed by my server application. When the network was back, my Android app send a request to the server that was not well-formed (because of a very little bug in the Android app). The server, because it did not recognize the request, closes the connection with the client, and so, my socket was closed!
So first tip when you get socket exceptions : try to put log or debug to check what happens *before* the crash!...

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment