Commit c45b91fe authored by JoyJ's avatar JoyJ

let download buffer bigger(2K->512K)

parent cf7177eb
Pipeline #76 passed with stage
in 1 minute and 40 seconds
......@@ -153,7 +153,7 @@ public static bool DownLoad(string filename)
Stream st = myrp.GetResponseStream();
Stream so = new System.IO.FileStream(filename + ".tmp", FileMode.Create);
long totalDownloadedByte = 0;
byte[] by = new byte[2048];
byte[] by = new byte[1024 * 512];
int osize = st.Read(by, 0, (int)by.Length);
while (osize > 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment