<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,10 +9,10 @@ module Mongo
       @connected = false
 
       @on_close = proc{
-        raise Error, 'could not connect to server'
+        raise Error, &quot;could not connect to server #{opts[:host]}:#{opts[:port]}&quot;
       }
 
-      timeout opts[:timeout] || 0.5
+      timeout opts[:timeout] if opts[:timeout]
       errback{ @on_close.call }
     end
 
@@ -69,7 +69,7 @@ module Mongo
     def unbind
       log 'disconnected'
       @connected = false
-      @on_close.call
+      @on_close.call unless $!
     end
 
     # connection</diff>
      <filename>lib/mongo/client.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>20863cc1709296a55c4172b69a322b2c0fcfd8c0</id>
    </parent>
  </parents>
  <author>
    <name>Aman Gupta</name>
    <email>aman@tmm1.net</email>
  </author>
  <url>http://github.com/tmm1/rmongo/commit/ac2003e4a7ee917568fd3636220b233d5b78ed57</url>
  <id>ac2003e4a7ee917568fd3636220b233d5b78ed57</id>
  <committed-date>2008-08-24T22:41:18-07:00</committed-date>
  <authored-date>2008-08-24T22:41:18-07:00</authored-date>
  <message>no default timeout; show host/port in error; no close callback if error state</message>
  <tree>44897152f5bce8aa853837d4184a565a7de6204c</tree>
  <committer>
    <name>Aman Gupta</name>
    <email>aman@tmm1.net</email>
  </committer>
</commit>
