# Rails process locking

**URL:** <https://www.ruby-forum.com/t/rails-process-locking/143895>\
**Category:** Rails\
**Created:** [July 23, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/rails-process-locking/143895 "2008-07-23T17:32:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@fox](https://www.ruby-forum.com/u/fox)\
**Post date:** [July 23, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/rails-process-locking/143895/1 "2008-07-23T17:32:18Z")

</div>

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.
