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

Revise close_stale_sockets! for new connection pool implementation

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Connections

      The implementation in close_stale_sockets! needs to be adjusted either for the current PR #1200 without background threads or for the new background thread implementation. Specifically:

      • connection closes should have the corresponding events published
      • reconnections should either be removed, such that all stale sockets result in the respective connections being closed and discarded, and new connections being created later by the background thread, OR reconnections should send correct pool events (and my feeling is it may not be worthwhile to get these events correct)

      This needs to be done prior to the next driver release.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: