Try adding a catcher for SIGPIPE and see if it gets called.
Clifford Heath.
On 08/03/2012, at 6:02 AM, Krzysztof Chodak wrote:
> Rails 3.2.2 with remote SQL Server 2005. When I lost sight of DB (VPN down) my rails server (thin development environment) crashes. Anyone else having it?
>
> --
> You received this message because you are subscribed to the Google Groups "Rails SQLServer Adapter" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/rails-sqlserver-adapter/-/EGSJGo4iiHQJ.
> To post to this group, send email to rails-sqlse...@googlegroups.com.
> To unsubscribe from this group, send email to rails-sqlserver-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rails-sqlserver-adapter?hl=en.
Just off the top of my head, it sounds like FreeTDS might not be rigorously checking for errors on the socket.
If this results in it writing on a socket that's been closed, it can result in a signal that will kill the app.Try adding a catcher for SIGPIPE and see if it gets called.
Clifford Heath.
On 08/03/2012, at 6:02 AM, Krzysztof Chodak wrote:
> Rails 3.2.2 with remote SQL Server 2005. When I lost sight of DB (VPN down) my rails server (thin development environment) crashes. Anyone else having it?
>
> --
> You received this message because you are subscribed to the Google Groups "Rails SQLServer Adapter" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/rails-sqlserver-adapter/-/EGSJGo4iiHQJ.
> To post to this group, send email to rails-sqlserver-adapter@googlegroups.com.
> To unsubscribe from this group, send email to rails-sqlserver-adapter+unsub...@googlegroups.com.
Ahh, probably not. But there'll likely be an equivalent thing, I forget my Windows socket programming.
Nothing likes being asked to write data on a closed socket though...
> On Wednesday, March 7, 2012 9:33:20 PM UTC+1, Clifford Heath wrote:
> Just off the top of my head, it sounds like FreeTDS might not be rigorously checking for errors on the socket.
> If this results in it writing on a socket that's been closed, it can result in a signal that will kill the app.
> Try adding a catcher for SIGPIPE and see if it gets called.
>
> Clifford Heath.
>
> On 08/03/2012, at 6:02 AM, Krzysztof Chodak wrote:
>
> > Rails 3.2.2 with remote SQL Server 2005. When I lost sight of DB (VPN down) my rails server (thin development environment) crashes. Anyone else having it?
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Rails SQLServer Adapter" group.
> > To view this discussion on the web visit https://groups.google.com/d/msg/rails-sqlserver-adapter/-/EGSJGo4iiHQJ.
> > To post to this group, send email to rails-sqlse...@googlegroups.com.
> > To unsubscribe from this group, send email to rails-sqlserver-a...@googlegroups.com.
> > For more options, visit this group at http://groups.google.com/group/rails-sqlserver-adapter?hl=en.
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Rails SQLServer Adapter" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/rails-sqlserver-adapter/-/iMiuy_txKXUJ.
> To post to this group, send email to rails-sqlse...@googlegroups.com.
> To unsubscribe from this group, send email to rails-sqlserver-a...@googlegroups.com.
https://github.com/rails-sqlserver/tiny_tds/blob/master/ext/tiny_tds/client.c#L57
This is supposed to compliment the adapters connection handling too by checking the state of the connection and dropping it if needed and creating a new one. Here lately I have been appending this info I recently found on the bottom of connection related issues. It covers keep alive settings and may be useful.
http://blogs.msdn.com/b/sql_protocols/archive/2006/03/09/546852.aspx
It causes good connection to break during transient network failures.
So configuring the keep-alive values too small is not recommended
gem install ruby-debug-base19x --pre- Ken
- Ken
- Ken
On Thu, Mar 22, 2012 at 21:29, Ken Collins <k...@metaskills.net> wrote:
>
> Cool, sorry I could not be more helpful. Your at a level that is just not in my comfort zone. I see your thread on the FreeTDS list too and will monitor it there.
>
> - Ken
>
> --
> You received this message because you are subscribed to the Google Groups "Rails SQLServer Adapter" group.