I am using a web client object to upload a file as follows:
strm = Client.OpenRead(url); strm.ReadTimeout = 30000; bool bFirst = true; while ((read = strm.Read(buf, 0, 2000)) > 0) { fout.Write(buf, 0, read); }
Where the URL points to the S3 bucket. In some cases, the download fails with a timeout of exactly 2 GB. Is this a network problem, or is there something I can change in the code?
Any ideas appreciated.
source share