Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SocketException on sending out a large chunk of data

1 view
Skip to first unread message

Frank Rizzo

unread,
Nov 19, 2009, 1:20:17 AM11/19/09
to
I am using the CANxtra (basically the GHI Embedded Master in a pretty
box) to send out a pretty large chunk of data via the network connection
(around 250k).

Method System.IO.Stream.Write causes an exception (#10060 - Connection
Timeout) if I try to send out everything in one shot.

However, if I break it up into 10k chunks, everything goes out fine.

My question is this: is there a maximum number of bytes that can be sent
out via this method? Is this codified in the MF or the vendor's drivers?

Regards

Lorenzo Tessiore

unread,
Nov 23, 2009, 3:10:01 PM11/23/09
to
You are mostly likely just incurring in the NetworkStream.WriteTimeout
timeout. Try increasing that to a larger value, say 5 minutes...


Regards
Lorenzo

"Frank Rizzo" wrote:

> .
>

0 new messages