Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / July 2008



Tip: Looking for answers? Try searching our database.

xmlhttp request reaching server late

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raghuram.nidagal@gmail.com - 23 Jul 2008 05:20 GMT
We use xmlhttp to query data from the server and also to submit data
to the server to initiate transactions. The querying is a polling
mechanism which is continuously polling the server.
We notice that sometimes for some users while the http request to
query data reaches the server within a second, the time taken to
submit data is extremely high (in excess of 5 secs). I wanted to
understand what could be the possible reason for this  behaviour.
Thanks
Raghu
Bart Van der Donck - 23 Jul 2008 10:15 GMT
raghuram.nida...@gmail.com wrote:

> We use xmlhttp to query data from the server and also to submit data
> to the server to initiate transactions. The querying is a polling
[quoted text clipped - 3 lines]
> submit data is extremely high (in excess of 5 secs). I wanted to
> understand what could be the possible reason for this behaviour.

It depends on the ISP and the subscription type, but upload traffic is
usually much slower than download traffic. In my case I have a 10 MB/
sec downstream and 1 MB/sec upstream. And the larger the submitted
data (upload), the slower the data will arrive at server. Not sure
which method you use, but server also needs a bit more time to parse
POST-requests compared to GET.

Hope this helps,

--
Bart
Bjoern Hoehrmann - 30 Jul 2008 12:35 GMT
* raghuram.nidagal@gmail.com wrote in comp.lang.javascript:
>We use xmlhttp to query data from the server and also to submit data
>to the server to initiate transactions. The querying is a polling
[quoted text clipped - 3 lines]
>submit data is extremely high (in excess of 5 secs). I wanted to
>understand what could be the possible reason for this  behaviour.

In addition to Bart's remarks also note that the queries might inter-
fere with the submissions, or there may be yet other requests to the
server, like images loading in the background, so that the browser may
run out of networking resources (e.g. there usually is a per-host and
sometimes a per-ip address connection limit that varies among browser
versions). You could use network analyzers like WireShark to gain some
insight into this kind of situation.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.