Apache 5.0 side effect: Response objects have to be closed #7109
Unanswered
natan-abolafya
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @natan-abolafya. You can take a look at the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have lots of tests that use
DropwizardAppExtension.client()
object and makes requests that returns aResponse
object.Now I'm upgrading to dropwizard 3.0 and tests are freezing because the not closing Response objects now keep the connections up. The connection pool fills up quick and a request freezes completely, waiting a connection from the pool.
This is a warning Intellij has been showing for quite a long while, so I guess it's on us. But at this point, changing all the tests is going to be very tedious job. So if you anybody knows how to go around it I'd appreciate it :).
Beta Was this translation helpful? Give feedback.
All reactions