Allow non-empty connection pools to be dropped (#583)

This breaks a reference cycle between PoolReturner and Agent that was
causing Agents (and their contained ConnectionPool) to never be dropped
so long as there was any stream in the ConnectionPool. This cause
sockets to leak over time, particularly when the convenience functions
ureq::get(), ureq::post(), etc were used, since those functions create
a new Agent each time.
This commit is contained in:
Jacob Hoffman-Andrews
2023-01-16 08:33:56 -08:00
committed by GitHub
parent 33fb553a28
commit 498e19943f
6 changed files with 26 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "ureq"
version = "2.6.1"
version = "2.6.2"
authors = ["Martin Algesten <martin@algesten.se>", "Jacob Hoffman-Andrews <ureq@hoffman-andrews.com>"]
description = "Simple, safe HTTP client"
license = "MIT/Apache-2.0"