Stream Question

  • Thread starter Thread starter Sven Rutten
  • Start date Start date
S

Sven Rutten

Hello

We're having a problem using TCPClient/Server. Everything is working ok with
asynchron readers on both ends.
But when we are writing from one side a lot to the stream (but in
50K-Buffers and 100ms sleep between writing!), and in the same time we are
writing some "pings" from the other side to the stream, the pings dont reach
the other side until all the parts (e.g. we are writing 1 MB in 20 x
50KB-buffer) are written to the stream...

How is that possible? It is not happening when we are connected using WLAN,
then everything works ok, but if we are connected over ActiveSync, the
described problem is happening...

Is this a limitation in ActiveSync?

if we are using Sleeps of 4000ms, then it is working (but not really
usable...)

Thanks

Sven
 
A bit complicated what I've written.
The question is, if I have a stream (tcp-client/server) and I am writing to
it at the client, and at the same moment the server is writing also to the
stream, while the client is still writing, will the asynchron reader receive
the bytes on the client site immediatly or after that the client has
finished writing to the stream?

Actually we are sending a file like that with 50K-buffers, and the "Pings"
we are sending from the server to the client are received after the whole
file got transmitted!

But only if I am using Activesync and Release-mode, if I'm on Debug it is
working sometimes!
 
Back
Top