-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ReadHeaderTimeout for security #826
Conversation
54d75c1
to
ca9aea8
Compare
ping @lionelvillard |
Handler: attachMiddleware(p.Handler, p.middleware), | ||
Addr: listener.Addr().String(), | ||
Handler: attachMiddleware(p.Handler, p.middleware), | ||
ReadHeaderTimeout: DefaultReadTimeout, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: How about we fix it for both read/write? Or at least set ReadTimeout
instead of just for headers to protect the read path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point - I'll do both (read and write) and do the entire thing, not just headers
Closes cloudevents#821 Signed-off-by: Doug Davis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@lionelvillard wanna review this one? |
@lionelvillard @embano1 thanks! |
Closes #821
Signed-off-by: Doug Davis [email protected]