tyrus
  1. tyrus
  2. TYRUS-286

Shared client container improvement (stop when there is no open session)

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      Issue Links

        Activity

        Hide
        Pavel Bucek added a comment -

        fixed merged to the master branch.

        commit 2fad7a64ce8caab04a6414b4bbc5f577b5ef39e4
        Author: Pavel Bucek <pavel.bucek@oracle.com>
        Date: Thu Dec 19 18:16:02 2013 +0100

        TYRUS-286: Shared client container idle timeout.

        Following code will enable shared client container and stops it after 5s of inactivity.
        Inactivity here means that container does not handle any connection. Existing connection
        even with no transferred data will always keep container alive.

        ClientManager client = ClientManager.createClient();
        client.getProperties().put(GrizzlyClientContainer.SHARED_CONTAINER, true);
        client.getProperties().put(GrizzlyClientContainer.SHARED_CONTAINER_IDLE_TIMEOUT, 5);

        Show
        Pavel Bucek added a comment - fixed merged to the master branch. commit 2fad7a64ce8caab04a6414b4bbc5f577b5ef39e4 Author: Pavel Bucek <pavel.bucek@oracle.com> Date: Thu Dec 19 18:16:02 2013 +0100 TYRUS-286 : Shared client container idle timeout. Following code will enable shared client container and stops it after 5s of inactivity. Inactivity here means that container does not handle any connection. Existing connection even with no transferred data will always keep container alive. ClientManager client = ClientManager.createClient(); client.getProperties().put(GrizzlyClientContainer.SHARED_CONTAINER, true); client.getProperties().put(GrizzlyClientContainer.SHARED_CONTAINER_IDLE_TIMEOUT, 5);

          People

          • Assignee:
            Pavel Bucek
            Reporter:
            Pavel Bucek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: