Wednesday, August 4, 2010

[android-developers] Re: Socket Timout in a simple HttpGet

I've had similar issues.

I guess the most obvious place to start is check that whatever you're
calling is responding. It's surprising how often the simple things can
trip you up.

One of the issues was having was as a result of using a proxy to route
all traffic so I could monitor network traffic. At one point I forgot
to start the proxy and of course the connection didn't work. After
about 2 hours I realized what the problem was and told myself I'd
never work on stuff late at night again.... until the following night
obviously - it's what geeks do.

The other "flakiness" I've noticed with network requests seems to be
related to having multiple network cards (real and virtual) and the
way AVD's _apparently_ choose a connection at random. I'm not sure if
this claim is true but disabling all my other network cards appears to
have helped the situation.

One final thing to check, if you're using Eclipse, is in "Run
Configurations" where you can set a limited network speed for testing.
It's easy to limit it to test something and then forget to remove the
limit later.

Ed

On Aug 4, 10:58 pm, Martins Streņģis <martin...@draugiem.lv> wrote:
> btw on gprs it's working fine

--
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