curl-users
how to remove ports from close_wait once opereation is completed
Date: Mon, 12 Apr 2010 10:46:04 +0530
Hi,
I am using libcurl in my application to send https messages to serevr.
If i kept the application for long ,its becoming unresponsive.
at that time the netstat-a command gave
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 197 0 172.21.128.210.dsnl 172.21.128.9.dsnl CLOSE_WAIT
tcp4 0 0 172.21.128.210.sftdst- 172.21.128.9.1720 CLOSE_WAIT
tcp4 0 0 *.kerberos *.* LISTEN
tcp6 0 0 *.kerberos *.* LISTEN
tcp4 0 0 172.21.128.210.h323hos *.* LISTEN
tcp4 37 0 172.21.128.210.52896 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52878 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52871 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52855 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52844 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52835 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52821 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52810 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52801 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52787 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52776 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52767 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52753 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52742 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52733 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52719 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52708 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52701 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52685 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52674 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52667 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52651 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52640 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52633 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52617 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52606 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52599 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52583 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52572 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52565 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52549 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52538 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52531 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52515 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52504 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52497 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52481 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52470 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52463 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52447 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52436 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52429 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52413 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52402 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52395 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52379 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52368 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52361 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52345 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52334 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52327 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52311 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52300 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52293 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52277 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52266 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52259 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52243 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52232 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52225 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52209 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52198 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52191 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52175 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52164 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52155 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52141 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52130 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52121 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52107 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52096 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52087 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52073 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52062 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52055 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52039 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52028 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52021 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.52005 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51994 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51987 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51971 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51960 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51953 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51937 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51926 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51919 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51903 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51892 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51885 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51869 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51858 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51851 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51835 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51824 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51815 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51801 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51790 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51781 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51767 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51756 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51747 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51733 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51722 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51713 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51699 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51688 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51679 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51665 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51654 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51645 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51631 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51620 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51611 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51597 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51586 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51577 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51563 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51552 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51543 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51529 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51518 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51509 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51495 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51484 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51475 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51461 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51450 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51441 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51427 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51416 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51407 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51393 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51382 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51375 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51359 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51348 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51341 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51325 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51314 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51307 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51291 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51280 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51273 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51253 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51242 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51235 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51219 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51208 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51201 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51185 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51174 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51167 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51151 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51140 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51133 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51117 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51106 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51097 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51083 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51072 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51065 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51049 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51038 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51031 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51015 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.51004 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50995 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50981 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50970 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50961 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50947 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50936 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50929 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50913 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50902 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50895 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50879 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50868 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50859 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50845 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50834 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50825 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50811 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50800 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.50791 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.49984 172.21.128.112.https CLOSE_WAIT
tcp4 37 0 172.21.128.210.49950 172.21.128.112.https CLOSE_WAIT
tcp4 0 0 *.afpovertcp *.* LISTEN
tcp6 0 0 *.afpovert *.* LISTEN
tcp4 0 0 localhost.ipp *.* LISTEN
tcp6 0 0 localhost.ipp *.* LISTEN
udp4 0 0 172.21.128.210.apparen *.*
udp4 0 0 172.21.128.210.apparen *.*
udp4 912 0 172.21.128.210.mdap-po *.*
udp4 42080 0 172.21.128.210.alchemy *.*
udp4 912 0 172.21.128.210.whisker *.*
There are so many ports opened and in close_wait state .
How to remove tose ports.It should be done in local system.
Thanks
Smitha
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-12