Skip to content
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

Do not accept more data than specified in the HTTP request. #930

Merged
merged 1 commit into from
Mar 15, 2019

Conversation

bbockelm
Copy link
Contributor

This fixes a potentially bad bug if pipelining is in use: in the callback for PUT, we write out ALL data present in the socket, regardless if it belongs to the current HTTP request - or is the beginning of the next pipelined request!

Things were handled correctly before if there was no pipelining (or the client didn't send too much data or the extra data the client sent happened to be split over multiple TCP packets).

Fixes #916

@ffurano ffurano merged commit f89cf18 into xrootd:master Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XrdHttp accepts message content exceeding specified Content-Length
2 participants