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

Set maximum filesize for Http transfers. #40

Merged
merged 2 commits into from
Dec 15, 2017
Merged

Set maximum filesize for Http transfers. #40

merged 2 commits into from
Dec 15, 2017

Conversation

lambdafu
Copy link
Collaborator

We should limit the amount of transfered bytes in all cases to prevent DoS attacks by malicious servers. This patch achieves that reliably and sets a default limit of 2MB, which should be plenty for most use cases within NeoPG even without any special considerations.

@lambdafu lambdafu merged commit 6621a10 into master Dec 15, 2017
@lambdafu lambdafu deleted the max-filesize branch December 15, 2017 19:49
@lambdafu lambdafu modified the milestones: 0.0.5, v0.0.5 May 15, 2018
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.

None yet

1 participant