Skip to content

SocketsHttpHandler: Add response drain timeout #25299

@geoffkizer

Description

@geoffkizer

We have a byte limit for response drain, but not a time limit. So a poorly behaved server could tie up the connection indefinitely. We should add a time limit.

EDIT 3/6/2018 by @stephentoub. Adding API proposal:

public int MaxResponseDrainSize { get; set; } // exists
public TimeSpan MaxResponseDrainTime { get; set; } // new (exists in implementation but as internal)

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implemented

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions