Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4525

Buffer leak when async stream is used synchronously and is interrupted

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Connection Management
    • None

      When an async stream such as AsynchronousSocketStream is used in a synchronous manner, typically by the server monitor, it can leak buffers from the buffer pool when the stream is closed while waiting for a response. This can happen when the server monitor is interrupted.

      In practice this happens rarely since the server monitor is only interrupted when it's closed, so the leak is not all that important. However, it makes it hard to write assertions about the absence of leaks when running integration tests.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: