/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] [AJAX] sending multiple requests at once — web server limit workaround?

my server appears to only allow 10 connections at once from any client. this is reasonable, i think..

my ajax sends >80 requests all in a very short amount of time. obviously, many of them will get dropped due to my web server’s limitation. or at least, i think thats the (obvious?) problem..

can anyone suggest an intuitive way to handle this problem on the client side, assuming(but not sure?) this is the issue? i’m thinking some type of queue system, but ive been working on my current project for HOURS and i’m fried and would appreciate some insightful input on this quandry!

REF: [url]http://70.95.166.9/qm[/url] (only works in FF ? despite strict standards compliance)

WARNING: the above link will bombard you with alerts (based on the number of servers that it says it found)… the number is FINITE, but is probably >80 or so

NOTE: if an alert has greaterthan and lessthan signs and any type of information, its NOT an AJAX error. its an actual successful alert of a serialized XML response. if it just says “403 forbidden”, thats the AJAX javascript returning an actual server error.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@MrNobodyFeb 09.2009 — You have three choices... (1) You can use synchronous AJAX requests so that no more than one connection is made from any given client at one time, or (2) just simply scheduled the next AJAX request upon completion of the prior AJAX request, or (3) combine your AJAX requests into a fewer number of requests. Personally, there I can't think of even one good reason why you should have to make >80 separate AJAX requests in a short amount of time.
Copy linkTweet thisAlerts:
@Angry_Black_ManauthorFeb 14.2009 — i did the combine thing. sending them one at a time takes too long. ive found i can usually send about 10 at the same time, but ill give my clients the option to change that.
×

Success!

Help @Angry_Black_Man spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...