Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshserver.py @ 35750:a39a9df7ecca
wireproto: split streamres into legacy and modern case
A couple of commands currently require transmission of uncompressed
frames with the old MIME type. Split this case from streamres into
a new streamres_legacy class. Streamline the remaining code accordingly.
Add a new flag to streamres to request uncompressed streams. This is
useful for sending data that is already compressed like a pre-built
bundle. Expect clients to support uncompressed data. For older clients,
zlib will still be used.
Differential Revision: https://phab.mercurial-scm.org/D1862
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 12 Jan 2018 10:59:58 +0100 |
parents | 8cdb671dbd0b |
children |
comparison
equal
deleted
inserted
replaced
35749:3a3b59bbe7ce | 35750:a39a9df7ecca |
---|---|
103 sys.exit(0) | 103 sys.exit(0) |
104 | 104 |
105 handlers = { | 105 handlers = { |
106 str: sendresponse, | 106 str: sendresponse, |
107 wireproto.streamres: sendstream, | 107 wireproto.streamres: sendstream, |
108 wireproto.streamres_legacy: sendstream, | |
108 wireproto.pushres: sendpushresponse, | 109 wireproto.pushres: sendpushresponse, |
109 wireproto.pusherr: sendpusherror, | 110 wireproto.pusherr: sendpusherror, |
110 wireproto.ooberror: sendooberror, | 111 wireproto.ooberror: sendooberror, |
111 } | 112 } |
112 | 113 |