Closed panboy75 closed 2 years ago
code: byte[] buffer = new byte[102400000]; while (true) { int bytesRead = await fs.ReadAsync(buffer, 0, buffer.Length); if (bytesRead > 0) { bool bSend = await ctx.Response.SendChunk(buffer); Debug.WriteLine("[" + ++index + "] " + "bSend = " + bSend.ToString()); } else { await ctx.Response.SendFinalChunk(buffer); break; } }
and output window messages: [16] bSend = True [17] bSend = True [18] bSend = True [19] bSend = True [20] bSend = True [21] bSend = False <-- over 2gb. (the buffer size is 102,400,000) [22] bSend = False [23] bSend = False [24] bSend = False [25] bSend = False
This webserver is great, but I can't send over 2gb files. Is there any settings or something?
I made a pull request to solve this problem. for now, I close this issue.
code: byte[] buffer = new byte[102400000]; while (true) { int bytesRead = await fs.ReadAsync(buffer, 0, buffer.Length); if (bytesRead > 0) { bool bSend = await ctx.Response.SendChunk(buffer); Debug.WriteLine("[" + ++index + "] " + "bSend = " + bSend.ToString()); } else { await ctx.Response.SendFinalChunk(buffer); break; } }
and output window messages: [16] bSend = True [17] bSend = True [18] bSend = True [19] bSend = True [20] bSend = True [21] bSend = False <-- over 2gb. (the buffer size is 102,400,000) [22] bSend = False [23] bSend = False [24] bSend = False [25] bSend = False
This webserver is great, but I can't send over 2gb files. Is there any settings or something?