Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2410

Free up server threads when client is closed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.8
    • Fix Version/s: 3.5.0, 3.4.9
    • Component/s: server
    • Labels:
      None

      Description

      Consider a situation where the server has sent some results back to the client and is waiting for Netty channel to be writable again before sending rest of the results. Let's assume that the client dies (or is closed) at this instant without consuming the entire set of results.

      In this case, the server threads will continue to wait for the channel to become writable (which it never will since client is dead) until the timeout is hit.

      We need to change the behaviour such that the waiting thread loop breaks if the channel becomes inactive. Such loop exists at TraversalOpProcessor (for bytecode execution) and AbstractOpProcessor(for string execution) in the server.

        Attachments

          Activity

            People

            • Assignee:
              divijvaidya Divij Vaidya
              Reporter:
              divijvaidya Divij Vaidya
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: