droped packets? problem with socket program...
My program sends HTTP GET requests to www.streamload.com/xml/myusername to receive XML files. The program downloads about 30 or so XML files and was working fine yesterday. Today I run it and it stops an a random file -- sometimes it gets to 12 sometimes it gets to 23... but it never gets all the way done. The recv() times out. I can't imagine why this would be happening all of a sudden. If i try pinging the server with 'ping' there are no lost packets and everything gets back to me with my normal latency (100ms).
I am a begginer socket programmer and was wondering if anyone knows how I can fix this problem or if anyone has experiences similar strange problems before. my program, more specifically does this: -send() an HTTP GET request with cookies attached -recv() an HTTP Header (checks to see if it is HTTP 200 OK) -open a file for writing with ofstream() -recv() loop until the specified number of bytes in the HTTP header's content-size are received Is there something wrong with this methodology, maybe? |
All times are GMT -5. The time now is 10:36 PM. |