Uploaded image for project: 'Engineering'
  1. Engineering
  2. ENG-2598

Connection accept latency when using the native wire protocol can spike to 400 millis

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: IT14
    • Fix Version/s: V2.8.3, IV2-IT21
    • Component/s: Clients
    • Labels:
      None
    • Story Points:
      5

      Description

      For auth we didn't go the non-blocking route with selectors. We ended up with a thread pool and the pool that does the auth work uses non-blocking IO and spinning with sleeps. The sleeps are 400 millis so you get bad behavior if the auth packet doesn't make it in time. That path needs to be rewritten to use a selector and be non-blocking.

      Do:

      Switch to blocking I/O and schedule a task to close the socket. If successful Auth, you can cancel the task.
      Test for Auth timeout

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aweisberg Ariel Weisberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support