This is an archive of the discontinued Mercurial Phabricator instance.

infinitepush: add server-side bundle limit
ClosedPublic

Authored by stash on Jul 19 2017, 7:06 AM.
Tags
None
Subscribers

Details

Reviewers
ryanmce
Group Reviewers
Restricted Project
Commits
rFBHGX9620d5580544: infinitepush: add server-side bundle limit
Summary

We've had problems when users sent huge bundles to the server.
Let's limit the size of the bundle.

Test Plan

Run infinitepush tests

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

stash created this revision.Jul 19 2017, 7:06 AM
ryanmce requested changes to this revision.Jul 19 2017, 7:38 AM
ryanmce added a subscriber: ryanmce.
ryanmce added inline comments.
infinitepush/__init__.py
1011–1014

Mismatch here in size limit.

This revision now requires changes to proceed.Jul 19 2017, 7:38 AM
stash added a comment.Jul 19 2017, 8:29 AM

(facepalm)
Thanks for catching!

stash edited edge metadata.Jul 19 2017, 10:00 AM
stash updated this revision to Diff 303.

addressed comments

ryanmce accepted this revision.Jul 19 2017, 10:10 AM
ryanmce added inline comments.
infinitepush/__init__.py
1015

It might be worth making the 100 MB thing dynamic, but meh.

This revision is now accepted and ready to land.Jul 19 2017, 10:10 AM
This revision was automatically updated to reflect the committed changes.