Skip to content

Instantly share code, notes, and snippets.

@hispanic
Created November 26, 2015 12:38
Show Gist options
  • Select an option

  • Save hispanic/cf760a7352649c851986 to your computer and use it in GitHub Desktop.

Select an option

Save hispanic/cf760a7352649c851986 to your computer and use it in GitHub Desktop.
HttpClient Logging - Connection re-used
Connection request: [route: {}->http://myhost:8080][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 100]
Connection leased: [id: 1][route: {}->http://myhost:8080][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 100]
@hispanic
Copy link
Author

When a connection is requested and leased, if an existing allocation (connection) for the route is re-used, “total kept alive” will decrement, but the allocation counts will hold steady.

For more information, please see How to Read HttpClient Logging and Prevent Connection Leaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment