Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1657

Provide a custom exception message to Timeout.timeout calls

    • 1
    • When the network operations fail with a timeout, the driver now provides a more descriptive exception message.
    • Minor Change

      The driver has two places where it calls Timeout.timeout:

      lib/mongo/socket/ssl.rb: Timeout.timeout(connect_timeout, Error::SocketTimeoutError) do
      lib/mongo/socket/tcp.rb: Timeout.timeout(connect_timeout, Error::SocketTimeoutError) do

      These calls specify a custom exception class but not a custom message. We can additionally supply a custom message to make it more clear when troubleshooting whether a timeout is driver-originated or comes from someone wrapping a call (possibly via patching the driver) in Timeout.timeout.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: