-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
Milestone
Description
Within our Unix code, we are casting FileStream.Length
to an int
here:
runtime/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs
Lines 1811 to 1812 in 84c1f62
public static SocketError SendFileAsync(SafeSocketHandle handle, FileStream fileStream, Action<long, SocketError> callback) => | |
SendFileAsync(handle, fileStream, 0, (int)fileStream.Length, callback); |
This would fail for any files greater than 2GiB in length.