-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David,
David Hesson wrote: > Hello, thanks for the information received thus far and trying to assist > me. With regards to the Integer problem: [snip] > C:\Documents and Settings\David\Desktop>java test > -2147483640 > > It overflows when they are added together. True. This is integer addition overflow, not a negative number resulting from reading a too-large string of digits into a too-small int value. > I haven't checked where the > content length is pulled from a String but if it does cause a crash, > then it is handled internally, as I don't receive errors/log messages > due to this issue. That is true. One problem with Tomcat (really the servlet spec) is that the ServetRequest.getContentLength method returns a 32-bit int instead of a 64-bit long, which means that you need to read the Content-Length as a string and convert it to a long if you want to be able to correctly read Content-Length headers with numbers bigger than 2^32 - 1. > What is this mod_jk you speak of? Does it come with Tomcat or do I need > to set it up? I'll begin googling in a second for research, but a > straight forward answer would be wonderful. mod_jk is an Apache httpd module that can be used to connect Apache httpd to Tomcat. IIRC, older versions of mod_jk read the Content-Length header as a 32-bit signed int and therefore broke uploads bigger than 2GB. > Also, with regards to > printing out the content length, the following happens whenever a large > (2.XGB+) file is uploaded: > > I have a filter that displays all headers of the request, */ALL/ *of > this was output when I submitted that file _/*ONE */_time (it's like > Tomcat leaves the request hanging, never sets up the content-length/ > etc, and loops until someone/something decides to handle this request). > I have trimmed the output substantially, because the same output is > issued approx every second or two for ONE request indefinitely (I left > my desk for about 15 minutes, and this same thing was still going). [snip] > INFO: if-modified-since: Mon, 13 Aug 2007 21:42:37 GMT if-modified-since on a file upload? That's odd... > Aug 14, 2007 10:54:00 AM > com.nurelm.rosenthalftp.filter.ContentLengthFilter doBeforeProcessing > INFO: host: localhost:8084 This looks like a second request. Are you sure this was a single request? It might help to print out the requested URI before you print the headers. It might help you sort-out the header output you're seeing. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGybgD9CaO5/Lv0PARAiwsAKCMrDk2Jtq7wGbg6+mnLD7CU1apyQCgliB0 2fGMClmmWVAGWPCousnfRlM= =6dIQ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]