Skip to content

Consider removing Socket.SendFile 2GB limitation on Windows #42534

@stephentoub

Description

@stephentoub

Separated out of #41906

On Windows, the Socket.{Begin}SendFile API inherits the limitation of the Win32 TransmitFile function that constraints it to only being able to send int.MaxValue bytes; anything larger results in an error. This is not a regression, but we should consider supporting this by manually partitioning as the TransmitFile docs suggest. This already works on Linux and macOS.

Metadata

Metadata

Assignees

Labels

area-System.Net.Socketshelp wanted[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions