/    Sign up×
Community /Pin to ProfileBookmark

Internet Timeout error "12002" when AJAX takes too long to complete

Hi, I’m writing a Javascript that uses AJAX to call a Perl CGI script that FTPs files from one server to another. When the CGI script takes < 1 hour to complete, AJAX completes successfully and the HTML results are printed on the Web page.

However, if the CGI script takes > 1 hour to complete, I get an Internet Timeout error “12002”. The timeout on our Apache web server is already set to 2 hours, so I’m sure it’s not the web server problem.

Could it be a timeout setting in Internet Explorer? I’m using IE 6 and I read somewhere that the timeout is 60 mins. I don’t think it’s AJAX or the CGI script that’s causing the problem.

Appreciate advice on this. Any sample code will be very helpful.
Thanks!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@toicontienNov 13.2007 — Instead of having an AJAX function running the whole time, you can initiate the file transfer via AJAX, then then once initiated, have the server send a reply back to the JavaScript saying "file transfer started." Then the AJAX function could periodically, like once a second, check to see if the file transfer has completed.
×

Success!

Help @luigiwong 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 4.27,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...