1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hi,
Python psutil package will allow you to list open tcp connections via psutil. net_connections()
See https://psutil.readthedocs.io/en/latest/ for all details.
You then be able to close them.
Some sample code to do that at https://stackoverflow.com/questions/58161929/can-i-close-connection-established-by-different-process
Best,
Didier
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전