C
Christoph
Hi,
I am using a Post Servlet to handle a text file upload. As a test, the
servlet currently just echoes the content of the raw request stream
into the response.
This has worked fine for small files, but the first time I tried to
upload around 1MB, the browser never got beyond the "Sending request"
status.
There appeared to be a precise limit on the length of the text file,
so I experimented and got around 320 KB. It fluctuates slightly, but
it appears to be around 326658 bytes, give or take a few. If the file
is shorter, the servlet will respond instantly. If it is only slightly
longer, the request will never finish sending. The status will remain
stuck at "Sending request to localhost".
Incidentally, if a file is successfully uploaded several times, it
will eventually run into the same problem. The server then becomes
unresponsive until restarted.
----------------------
For a default upload limit, this seems irrationally low, and I didn't
change the configuration. The server also runs locally, so the network
is no issue.
Where should I look for the cause of this problem?
I am using a Post Servlet to handle a text file upload. As a test, the
servlet currently just echoes the content of the raw request stream
into the response.
This has worked fine for small files, but the first time I tried to
upload around 1MB, the browser never got beyond the "Sending request"
status.
There appeared to be a precise limit on the length of the text file,
so I experimented and got around 320 KB. It fluctuates slightly, but
it appears to be around 326658 bytes, give or take a few. If the file
is shorter, the servlet will respond instantly. If it is only slightly
longer, the request will never finish sending. The status will remain
stuck at "Sending request to localhost".
Incidentally, if a file is successfully uploaded several times, it
will eventually run into the same problem. The server then becomes
unresponsive until restarted.
----------------------
For a default upload limit, this seems irrationally low, and I didn't
change the configuration. The server also runs locally, so the network
is no issue.
Where should I look for the cause of this problem?