hi all,
Over the last couple of days, I’ve been trying to allow data uploads to
my app via a soap interface. However, to get large files I have to put
the data into an array on the client:
open(‘data.doc’).readlines
and then when it’s uploaded, join it. this is obviously inefficient, but
now I’m seeing the whole rails application doesn’t respond when this
process is taking place. I’ve tried putting the server side stuff in a
Thread.fork{}, but rails still locks.
Has anyone had to do stuff like this before with ruby? (Upload files via
a public api)
Is it possible to avoid the thread locking?
thanks for reading.