0
Thanks Amit for your reply. I got solution for this issue.
If we are sending some data on network & destination is not reachable due to some reason, then socket object is holding data for some time & throwing exception. So, I have used seprate thread for each thread & in case of exception aborting thread.