Re: .Net TCP Socket Problem With Missing Chunks From Large Packets
From: Feroze [MSFT] (ferozed_at_online.microsoft.com)
Date: 02/23/04
- Next message: Feroze [MSFT]: "Re: system lacked sufficient buffer space"
- Previous message: David: "Re: Serializing only changed objects"
- In reply to: Sami Vaaraniemi: "Re: .Net TCP Socket Problem With Missing Chunks From Large Packets"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 22 Feb 2004 20:12:34 -0800
Please post some code on the sender & receiver at the point where you write
out the data & read the data.
Most of the issues of such nature that I have found have to do with making
wrong assumptions about the TCP stream behavior, or other bugs in processing
the input stream.
-- http://weblogs.asp.net/feroze_daud Remove "user" from the email address to reply to the author. This posting is provided "AS IS" with no warranties, and confers no rights Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "Sami Vaaraniemi" <samivawantsnospam@jippii.fi> wrote in message news:c0i3oh$1u1$1@phys-news1.kolumbus.fi... > > "Todd" <getmyemails2@yahoo.com> wrote in message > news:u8EF9tb8DHA.2576@TK2MSFTNGP09.phx.gbl... > > Hello, > > > > An acquaintance asked me to assist him with some TCP socket issues. I > > thought I might present the question as it may be of interest or > > may already have encountered the problem. > > > > Basically, when sending small packets of data over short distances, the > data > > arrives properly. However, when large packets are sent over longer > > distances, the data arrives with portions missing. > > TCP is a stream oriented protocol. That means that if you send n bytes, the > receiver might receive anywhere from 1 to n bytes when reading data out of > the socket. In order to receive all the data that was sent, the receiver > typically reads the data in a loop and blocks until all the data has > arrived. > > Now if you are already handling the above and you are missing data in the > middle of a packet, then I'm not sure what the problem is. TCP is a reliable > protocol and you should be getting an error indication in case of > transmission problems. > > Sami > >
- Next message: Feroze [MSFT]: "Re: system lacked sufficient buffer space"
- Previous message: David: "Re: Serializing only changed objects"
- In reply to: Sami Vaaraniemi: "Re: .Net TCP Socket Problem With Missing Chunks From Large Packets"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|