meilisearch / meilisearch-rust

Rust wrapper for the Meilisearch API.
https://www.meilisearch.com
MIT License
362 stars 91 forks source link

use Client netstat show so many links under windows environment #604

Closed skydig closed 4 months ago

skydig commented 4 months ago

I create dynamically client to perform search, few seconds, using netstat I can see so many links! TCP 127.0.0.1:51754 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51755 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51756 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51757 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51758 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51760 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51761 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51762 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51763 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51764 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51765 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51766 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51767 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51768 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51769 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51770 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51771 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51772 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51773 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51774 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51775 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51776 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51778 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51779 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51780 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51781 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51782 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51783 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51784 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51785 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51786 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51787 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51788 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51790 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51791 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51792 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51793 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51794 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51795 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51796 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51797 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51798 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51799 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51800 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51801 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51802 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51803 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51804 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51805 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51806 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51807 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51808 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51809 DESKTOP-1VPFSGK:33210 TIME_WAIT TCP 127.0.0.1:51810 DESKTOP-1VPFSGK:7700 TIME_WAIT TCP 127.0.0.1:51811 DESKTOP-1VPFSGK:33210 TIME_WAIT

Expected behavior I think when client gone, the tcp should closed, but not.

Current behavior What happened.

Screenshots or Logs If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

skydig commented 4 months ago

actually, I have only 3 client, why so many tcp timewait socket ?