jmulford-bw / Java-V2-Messaging-SDK

0 stars 1 forks source link

MAJOR: Leaking network/heap resources #23

Open n-miles opened 5 years ago

n-miles commented 5 years ago

The BandwidthClient.parseResponse() method does not close any of its resources. This is going to result in a single TCP socket being opened for every single request and then never being closed ever. Even when the OS eventually kills the socket, the Apache client is going to hang onto the resources and if the thing runs long enough, it will leak all of the available memory and the JVM will crash.