Hello,
I'm creating a helper tool for a text-based online browser game.
Basically, it's loading 10 connections to that game and showing captchas you have to solve. After you send one captcha, it loads next one and so on.
While it's waiting for you to solve captcha, connection is 'inactive' so there aren't 10 connections active all the time.
After I started using this tool, I noticed game loading became slow (in normal browser).
I wasn't exactly sure if it's my fault (because of 10 connections limit I put in program). Few days later, after game continued to be slow, I thought I'd check "netstat" in cmd. There was huge amount of connections to that site (50+), but only few of them were "ESTABLISHED", others were in "TIME_WAIT" state.
I first thought it's normal and went to check friend's tool (same program, in VB6), but there were only few "ESTABLISHED" and some other connection states, but no 50+ "TIME_WAIT"'s.
My next guess was that connections weren't closed properly, so I tried to call http->closeConnection(); or http->abort(); after each process (GET or POST), but it didn't help.
Any ideas?
Bookmarks