D2871: wireproto: service multiple command requests per HTTP request

2018-03-24 Thread yuja (Yuya Nishihara)
yuja added inline comments. INLINE COMMENTS > wireprotoserver.py:557 > elif action == 'noop': > pass > else: Nit: `return False` instead of returning None? REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2871 To: indygreg, #hg-reviewers,

D2871: wireproto: service multiple command requests per HTTP request

2018-03-21 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGbbea991635d0: wireproto: service multiple command requests per HTTP request (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D2871: wireproto: service multiple command requests per HTTP request

2018-03-21 Thread durin42 (Augie Fackler)
durin42 added inline comments. INLINE COMMENTS > wireprotoserver.py:508 > + > +assert authedperm in (b'ro', b'rw') > +wirecommand = wireproto.commands[command['command']] worth not using assert here? I don't think this is attacker-controlled? REPOSITORY rHG Mercurial

D2871: wireproto: service multiple command requests per HTTP request

2018-03-19 Thread indygreg (Gregory Szorc)
indygreg updated this revision to Diff 7147. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2871?vs=7055=7147 REVISION DETAIL https://phab.mercurial-scm.org/D2871 AFFECTED FILES mercurial/help/internals/wireprotocol.txt mercurial/wireprotoserver.py

D2871: wireproto: service multiple command requests per HTTP request

2018-03-14 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Now that our new frame-based protocol server can understand how to ingest multiple, possibly interleaved, command requests, let's hook it up to the HTTP