• Post Reply Bookmark Topic Watch Topic
  • New Topic

some sockets are not being closed

 
Doua Beri
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone. So I have the following code:



So it connects through a SOCKS proxy and save the content of an website to a file. Works great but with some proxies the application blocks. I tried everything.
If I choose to terminate the thread it simply takes areound 5-6 minutes sometimes even 15 min+ for the thread to be terminated.

I think it's an OS problem. no so sure. I use Windows Vista. I run the app on another windows vista and the same result. I switch to win XP and still the same result. I never tested on linux because my app need to run on windows systems (XP or higher).

Did you faced similar problems where the socked will just not want to close ? Also if you know what I should do I will much appreciate.

Thank you
 
Mark Uppeteer
Ranch Hand
Posts: 159
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the exact line of code that blocks ? did you run through it with the debugger ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!