LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2004, 11:58 PM   #1
kamel
LQ Newbie
 
Registered: May 2004
Posts: 13

Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me with this socket address bind program. rnice Linux - Networking 0 09-17-2004 08:33 PM
RAID 0 performance droped 25% Zvezda Fedora 0 05-30-2004 07:32 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 06:43 AM
a program to listen+accept incomming connection+echo packets ? qwijibow Linux - Software 0 03-01-2004 10:10 PM
userspace program for forwarding packets after amendment of the destination address becky_starr Linux - Software 0 01-12-2004 07:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration