Hi, I came across something very interesting. I use attachment_fu for file uploads and mongrel_cluster for scalability. Together they should allow me to perform multiple (concurrent) file uploads. This does work with uploads started on Windows, but on Linux something strange happens: the upload started on Linux hangs. So, if you start an upload from a Linux machine, and then start an upload from a Windows machine, the Windows upload will go through but the Linux upload will cause the browser to time out. If you start multiple uploads from a Linux machine, they will both fail. If you attempt multiple uploads from a Windows machine (or 2 different Windows machines), they all work! I tried many combinations: different Windows, Linux and Solaris machines with different browsers (ie, mozilla, firefox, sea-monkey). You can trace the upload by looking at the /tmp folder of the web server. When a Windows upload starts, you can see a CGIXXXX-0 file growing in the /tmp folder. When the Linux upload starts, you can see a second CGIXXXX-0 file in the /tmp folder. After 1-2 seconds, the temp file corresponding to the Linux upload stops growing (while the Windows upload file continues to grow). Does anyone know why this happens? Thanks, Tiberiu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Roger Pack
2008-Apr-15 07:05 UTC
Re: interesting find: multiple file uploads stopped on Linux
You could try it with just one mongrel and see if that helps.> a second CGIXXXX-0 file in the /tmp folder. After 1-2 seconds, the > temp file corresponding to the Linux upload stops growing (while the > Windows upload file continues to grow). > > Does anyone know why this happens? > > Thanks, > Tiberiu-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mr_Tibs
2008-Apr-17 17:59 UTC
Re: interesting find: multiple file uploads stopped on Linux
False alarm. For some reason the IS&T group at work is somehow capping uploads. I tried it from home from a Linux machine and it works. Tiberiu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---