Closed rzane closed 9 years ago
The gem is a wrapper around fbclient, which does not have a timeout setting, to my knowledge. Nor do we have access to the socket used by fbclient or we could specify a timeout on the socket. Fortunately, in practice, this is rarely a problem. Most database connections are local and fail quickly if they are going to fail.
Okay. Thanks anyway.
As best I can tell, there is no timeout when establishing a connection. The following script ran for about 4 minutes on my machine:
When it finally did exit, this was the error:
The connection should probably bail after a certain amount of time. Ideally, this amount of time would be configurable in the connection hash. I'm not a C guy, so I'm not sure I'll be of any help.