-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TinyTds::Client.new blocks other threads #421
Comments
I would think expected behavior for Ruby and compared to other DB connection gems. You can lower the connect timeout if you want. |
@metaskills we will probably lower the At least
And
|
Cool, if you find that other DB connection gems behave differently, please do let us know so we can make this better. |
@metaskills as I mentioned in the previous comment, other db gems do behave differently - they don't block other threads, but tinytds blocks other threads |
My bad, I missed that. I wonder if that is something we can fix at our bindings to FreeTDS. I see we removed at one time the |
Environment
ProductName: Mac OS X
ProductVersion: 10.13.5
BuildVersion: 17F77
TinyTDS Version: 2.1.2
FreeTDS Version: 1.00.104
Ruby: 2.3.1
Description
TinyTds::Client.new
blocks the other threads for 60s if the mssql server is not reachable. Am I missing something or this is the expected behavior?Example:
https://gist.github.com/ebeigarts/85c5d6603f8dab78b04addcff2ef3d0c
The text was updated successfully, but these errors were encountered: