Skip to content

Socket.SendFile on *nix has serialization issue with pre/post-buffers #45274

Closed
@gfoidl

Description

@gfoidl

Cf. #45132 (comment)

@geoffkizer states

we have an issue with the Unix impl of SendFile today, since there's no serialization here. If you do a concurrent Send, then that send could slip in between one of the parts of the SendFile and you won't get the expected results.

The current implementation performs three independent sends

  • send the preBuffer
  • send the file
  • send the postBuffer

that aren't protected from any concurrent send.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions