client
client copied to clipboard
Close client in order to prevent file handle leak
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
Hi thanks for contributing/fixing the bug! @michaelwechner can you sign the CLA and resolve the conflict?
Thanks, sure!