This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes multipart upload servlet timing out? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "multipart upload servlet timing out?" Watch "multipart upload servlet timing out?" New topic
Author

multipart upload servlet timing out?

Sheldon Plankton
Ranch Hand

Joined: Feb 11, 2004
Posts: 33
Hi,
I want to know how to prevent ...
java.net.SocketTimeoutException: Read timed out
... from happening when I up load very large files.
Here is the list of the files I want to upload.
-rw-r--r-- 1 Plank None 5427 Feb 5 11:56 XYZ_ABC_01.dat
-rw-r--r-- 1 Plank None 702 Feb 5 11:56 XYZ_ABC_02.dat
-rw-r--r-- 1 Plank None 112 Feb 5 11:56 XYZ_ABC_03.dat
-rw-r--r-- 1 Plank None 17877 Feb 5 11:56 XYZ_ABC_04.dat
-rw-r--r-- 1 Plank None 1749 Feb 5 11:56 XYZ_ABC_05.dat
-rw-r--r-- 1 Plank None 952 Feb 5 11:56 XYZ_ABC_06.dat
-rw-r--r-- 1 Plank None 14703464 Feb 17 13:30 XYZ_PDQ_07.dat
-rw-r--r-- 1 Plank None 287694 Feb 17 13:31 XYZ_PDQ_08.dat
-rw-r--r-- 1 Plank None 0 Feb 12 11:54 XYZ_PDQ_09.dat
-rw-r--r-- 1 Plank None 71570688 Feb 5 11:56 XYZ_PDQ_10.dat
-rw-r--r-- 1 Plank None 121130074 Feb 17 13:20 XYZ_PDQ_11.dat
-rw-r--r-- 1 Plank None 42880710 Feb 17 13:23 XYZ_PDQ_12.dat
-rw-r--r-- 1 Plank None 11528014 Feb 17 13:23 XYZ_PDQ_13.dat
I am using servlet that inports com.oreilly.servlet.multipart to upload the files. I know the files are big there is nothing I can do about that. Is there someway to increase the timeout threshold or even turn off time outs?
Thanks
Sheldon
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: multipart upload servlet timing out?
 
Similar Threads
pattren
Cannot create InputStream from Properties file
How do I avoid SocketTimeoutException: Read timed out
Configure Jboss in Ant???
Changing run levels in Linux