Hello,
I have written a Java applet that uses Merb to process file uploads.
This works perfectly on Merb 0.1.0.
When I upgraded to 0.3.7, all seems to work well, but I then started to see
problems - when people uploaded certain files, the ruby process would spin
out and start using lots of CPU, never coming back to life. Other files
work just fine.
The problem is almost certainly in my Java file handling - when I upload the
same problem file through an HTML upload form, it works fine.
The one thing I did notice was that in the merb log, I would see the first
line of the request log entry, e.g.:
Request: REQUEST_URI:
/upload/applet_upload_file?token=98e4e4f3b55db4ea848b13ad7
01d4aaa,46bae8bc,9084,192,33,1 (2007-08-09 11:13:17)
but the next line, e.g. Params:{ ... never appeared - the process would just
hang.
I assume that Mongrel is doing the work of receiving the file (which is
about 8k) before handing it back to Merb, and this is where the problem is
occuring, but to help me track it down, does anyone know of any big changes
in the way file uploads worked in 0.1.0 and 0.3.7, or could someone give a
runthrough of the process when a file upload occurs, and where best to start
looking to debug.
Thanks
Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/merb-devel/attachments/20070809/2fe9229e/attachment-0001.html