Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sockets pause problem

Status
Not open for further replies.

BigDaz

Technical User
Jan 14, 2002
39
GB
win98
i have a client program that produces data (sometimes large amounts) then connects to a host program, then transfers the data.
a value representing the total amount of data is first, the data is always in multiples of 200K bytes so the sending can be easly broken down.
the following is a rough procedure of have the data is sent:

for amount of data/200K do
make socket
transfer data -> ie 200 loops of send(1000 bytes)
close socket

the problem is that the data flow between the sets of the '200 send' loops sometimes pauses for up to 5 seconds before continuing, though i don't know why.

cheers, bigdaz.
 
BigDaz,

Try using WinDump to capture a transaction, and email it to me at s_p_y_k_e@lycos.com.

One thought, are you sending by host name or by IP address? If you are using host name, try using IP address and see if the pauses reduce. Periodically during a transmission, your machine may need to do a DNS lookup to resolve the name to IP address. It can cause these sorts of pauses.

Try creating a 'hosts' file on both machines with the IP addresses and names in it. It goes in the same directory as the 'hosts.sam' file, and you can use the hosts.sam file as a sample of the hosts file configuration. If you use notepad to create it, be careful about the file extension. Notepad has an EXTREMELY bad habit of putting the .txt extension on files even when you try not to have one. The file must be named 'hosts' with no file extension in order to work. You may have to change the file name manually with Explorer to remove it.

pansophic
 
i am sending by IP address, i will send you the capture when i have.

thanks for your help, bigdaz.
 
ok i think i've sorted the problem, thanks for your help!

cheers, BigDaz.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top