Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: A problem while transferring data over the NetworkStream Pin
Dave Kreskowiak1-Jun-11 14:10
mveDave Kreskowiak1-Jun-11 14:10 
GeneralRe: A problem while transferring data over the NetworkStream Pin
SimpleData1-Jun-11 14:12
SimpleData1-Jun-11 14:12 
GeneralRe: A problem while transferring data over the NetworkStream Pin
BobJanova1-Jun-11 23:11
BobJanova1-Jun-11 23:11 
GeneralRe: A problem while transferring data over the NetworkStream Pin
SimpleData2-Jun-11 0:51
SimpleData2-Jun-11 0:51 
GeneralRe: A problem while transferring data over the NetworkStream Pin
Dave Kreskowiak2-Jun-11 2:21
mveDave Kreskowiak2-Jun-11 2:21 
AnswerRe: A problem while transferring data over the NetworkStream Pin
jschell1-Jun-11 14:49
jschell1-Jun-11 14:49 
AnswerRe: A problem while transferring data over the NetworkStream Pin
Luc Pattyn1-Jun-11 14:58
sitebuilderLuc Pattyn1-Jun-11 14:58 
AnswerRe: A problem while transferring data over the NetworkStream Pin
BobJanova1-Jun-11 23:10
BobJanova1-Jun-11 23:10 
Since it works for small files, and appears to be deterministic (does it always fail at the same point? or is it just more likely that larger files will fail?), it must be to do with filling an array, running out of space in a TCP buffer or something similar. If it is not so simple (i.e. it fails more on larger files, but it is not deterministic) then it is probably to do with the handshake to request more data.

It is impossible to go into any more detail than that with the information available. I can only echo the advice to sprinkle your code liberally with logging statements to find out what is actually happening.

Why are you doing that, anyway? TCP guarantees the ordering and transmission so you can just send the whole file on the sender end. What you are doing adds latency (2 way ping) each chunk.
GeneralRe: A problem while transferring data over the NetworkStream Pin
SimpleData2-Jun-11 0:54
SimpleData2-Jun-11 0:54 
GeneralRe: A problem while transferring data over the NetworkStream Pin
jschell2-Jun-11 9:42
jschell2-Jun-11 9:42 
GeneralRe: A problem while transferring data over the NetworkStream Pin
SimpleData2-Jun-11 10:29
SimpleData2-Jun-11 10:29 
GeneralRe: A problem while transferring data over the NetworkStream Pin
jschell6-Jun-11 8:49
jschell6-Jun-11 8:49 
GeneralRe: A problem while transferring data over the NetworkStream Pin
SimpleData6-Jun-11 9:47
SimpleData6-Jun-11 9:47 
GeneralRe: A problem while transferring data over the NetworkStream Pin
jschell7-Jun-11 9:42
jschell7-Jun-11 9:42 
QuestionSharpening the Saw Pin
eddieangel1-Jun-11 6:32
eddieangel1-Jun-11 6:32 
AnswerRe: Sharpening the Saw Pin
Luc Pattyn1-Jun-11 7:16
sitebuilderLuc Pattyn1-Jun-11 7:16 
AnswerRe: Sharpening the Saw PinPopular
SledgeHammer011-Jun-11 8:06
SledgeHammer011-Jun-11 8:06 
GeneralRe: Sharpening the Saw Pin
eddieangel1-Jun-11 8:14
eddieangel1-Jun-11 8:14 
GeneralRe: Sharpening the Saw Pin
SledgeHammer011-Jun-11 8:38
SledgeHammer011-Jun-11 8:38 
GeneralRe: Sharpening the Saw Pin
eddieangel1-Jun-11 8:42
eddieangel1-Jun-11 8:42 
GeneralRe: Sharpening the Saw Pin
SledgeHammer011-Jun-11 9:48
SledgeHammer011-Jun-11 9:48 
AnswerRe: Sharpening the Saw Pin
Luc Pattyn1-Jun-11 15:05
sitebuilderLuc Pattyn1-Jun-11 15:05 
GeneralRe: Sharpening the Saw Pin
RobCroll1-Jun-11 14:01
RobCroll1-Jun-11 14:01 
AnswerRe: Sharpening the Saw Pin
jschell1-Jun-11 8:50
jschell1-Jun-11 8:50 
AnswerRe: Sharpening the Saw Pin
Ennis Ray Lynch, Jr.1-Jun-11 8:54
Ennis Ray Lynch, Jr.1-Jun-11 8:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.