Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-163

NioTcpServer water mark/conn full control does not work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.Beta5
    • None
    • nio-impl
    • None

      The high/water mark values are frequently ignored and an unexpected number of threads manages to connect.
      Also, an awaitAcceptable could hang forever.

      For example, setting a HIGH_WATER_MARK of 10, and a LOW_WATER_MARK of 5 on a channel that has CONN_FULL status and 3 connections results in no change in the status, while the correct would be CONN_FULL status be changed to normal.

      Another example is that accept enforces the total of connections to be larger than high water mark. This is inconsistent with the rest of the code, and the correct would be enforcing the total of connections to be larger or equal to the high water mark.

            flaviarnn Flavia Rainone
            flaviarnn Flavia Rainone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: