File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes (104) Connection reset by peer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "(104) Connection reset by peer" Watch "(104) Connection reset by peer" New topic

(104) Connection reset by peer

Bob Backlund
Ranch Hand

Joined: Jun 05, 2003
Posts: 51
Hi I was wondering if anyone could help me, firstly I'm not sure if this should be on the JSP or Servlet forum, so apologies in advance if I'm wrong.
I have a small program which moves files from one location to another, you simply start with a page which allows you to select the files to be moved, then when you click submit a servlet begins to transfer the files accross. Once this is complete the servlet redirects to a success page. The problem seems to be if the user transfers a large file (or large collection of files), after a couple of minutes I get a (104) Connection reset by peer, URL can not be found error. However the file move does still appear to be working in the background, but to the user appears to have failed.
I can not refresh the [age as this seems to cause the servlet to try and start the file transfer again, so I need a way to stop the (104) Connection reset by peer error from occurng.
Please help I have been looking for a few days now and seem to have hit a brick wall! :-(
Cheers KPS

Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Welcome to the Java Ranch, we hope you´┐Żll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!

Bob Backlund
Ranch Hand

Joined: Jun 05, 2003
Posts: 51
Appologies it is in fact a 404 Connection reset by peer error NOT a 104 error as i foolishly typed before.
I agree. Here's the link:
subject: (104) Connection reset by peer
jQuery in Action, 3rd edition