Hi, very good news about the 'pg' driver (I open a new thread as the previous 
one was invalid).

After I've reported the bug, developers of 'pg' have confirmed it:

"Well, I was going to reply that the 'pg' library has an interface explicitly 
for doing non-blocking connects (PGconn.connect_start/connect_poll), but when 
I added a case to demonstrate this to the test case you attached, it blocked 
anyway! It turns out that .connect_start has had a bug in it since it was 
written. I'll commit the fix for that shortly"


And the fix is already available:

http://bitbucket.org/ged/ruby-pg/issue/14/pgconnconnect-blocks-forever-if-the-
db-host-is
http://bitbucket.org/ged/ruby-pg/changeset/f5af71167dea/


But this requires the usage of a different method for connection. See a 
working example:

  http://bitbucket.org/m/attch/2009/12/test_ruby_db_drivers_block_in_connect2.rb


Could it be implemented in Sequel so 'pg' would be non-blocking for 
connections?

Regards.


-- 
Iñaki Baz Castillo <[email protected]>

--

You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.


Reply via email to