client icon indicating copy to clipboard operation
client copied to clipboard

Close client in order to prevent file handle leak

Open michaelwechner opened this issue 2 years ago • 2 comments

When I was running the Java triton client without closing, then after approximately 300 requests I got a "too many open files" exception. Closing the client using client.close() prevents this problem.

In the example https://github.com/michaelwechner/close-triton-client/blob/main/src/java/src/main/java/triton/client/examples/SimpleInferPerf.java I did not close the client, whereas you might want to do this as well to make sure people know that they should close the client

michaelwechner avatar May 10 '23 22:05 michaelwechner

Hi thanks for contributing/fixing the bug! @michaelwechner can you sign the CLA and resolve the conflict?

jbkyang-nvi avatar Jul 14 '23 01:07 jbkyang-nvi

Thanks, sure!

michaelwechner avatar Jul 14 '23 05:07 michaelwechner