Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

client add Close function #268

Open
lostz opened this issue Jun 8, 2016 · 1 comment
Open

client add Close function #268

lostz opened this issue Jun 8, 2016 · 1 comment

Comments

@lostz
Copy link

lostz commented Jun 8, 2016

HI all:
I use engine-api for my docker monitor,my program run all the time。
I find that
taishan 47434 root 9u unix 0xffff882025aae180 0t0 4493265 socket
taishan 47434 root 10u unix 0xffff880cbdc1bfc0 0t0 6003816 socket
taishan 47434 root 11u unix 0xffff880cbdc1a1c0 0t0 6003974 socket
taishan 47434 root 12u unix 0xffff880cbdc1cec0 0t0 6004348 socket
taishan 47434 root 13u unix 0xffff880e2e081e00 0t0 5991382 socket
taishan 47434 root 14u unix 0xffff882025aae540 0t0 4493267 socket
taishan 47434 root 15u unix 0xffff880c82125dc0 0t0 6009421 socket
taishan 47434 root 16u unix 0xffff8830273c2d00 0t0 5978477 socket
taishan 47434 root 17u unix 0xffff880f8d234b00 0t0 5998242 socket
So I advise add a Close function to close the client unix socket。

@jhorwit2
Copy link

If you make your own http client/transport then pass it to NewClient you can call CloseIdleConnections which should get rid of those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants