Marc Sernatinger <[email protected]> wrote:
> I bring this question to the unicorn discussion because I noticed we
> don't have this problem using Passenger.  I was wondering if there
> were any particulars of our setup that seem problematic. 

Do you have "preload_app" set to true?  Try using the default (false)
since it's likely to cause issues for some/most database drivers or
anything else that opens a stream socket.

You can't safely share stream sockets across multiple processes/threads
so you have to disconnect/reconnect them in the before/after_fork hooks.

> Our stack: Rails 3.0.7 activerecord-sqlserver-adapter 3.0.15 using
> ruby-odbc and FreeTDS 0.82 unicorn 3.5.0 with nginx in front SQL
> Server 2005 -- at a different site from our web servers, connected by
> WAN CentOS 5.9

Maybe somebody else can help you if disabling preload_app doesn't help.
I have no idea about any of the database components you use.

-- 
Eric Wong
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to