Hi,

(I had earlier sent this mail to the android-platform mailing list but I think this is a better place to post this)

There is a weird behaviour with XMLHttpRequest that I have noticed in the default browser on Android 2.1: if the server takes a long time to respond to an AJAX request (more than 14 seconds), then the browser sends another request to the server (which looks identical to the original one).

I only know that two requests have been sent when I observe incoming requests on the server. Meanwhile, the output of adb logcat gives me this line:

09-13 20:59:43.912 W/browser (22847): Console: Error: NETWORK_ERR: XMLHttpRequest Exception 101

And even though the server returns a status code of 200 for both of these requests, in the XMLHttpRequest object, while the readyState is set to 4, status is set to 0.

I have only observed this behaviour on the device (Galaxy S), and not on the emulator. I tried this with another device (Galaxy -- Android 1.5), and this didn't occur there.

Is this a known issue? Is there any workaround/fix for this?

Cheers,
Chaitanya
--
http://chaitanyagupta.com/blog/

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