summaryrefslogtreecommitdiff
path: root/Backend.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-12-02 13:45:45 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-12-02 13:45:45 -0400
commit81454244b07e00c0b250353bba1648f2d67715d9 (patch)
tree116fbdbef0a921a4ca1ec9f548d257f31b52aa59 /Backend.hs
parent753793371aa6595e41b095952f5d67563e103290 (diff)
make sure that the specified number of bytes of DATA are always sent
It's possible, in direct or thin mode, that an object file gets truncated or appended to as it's being sent. This would break the protocol badly, so make sure never to send too many bytes, and to close the protocol connection if too few bytes are available.
Diffstat (limited to 'Backend.hs')
0 files changed, 0 insertions, 0 deletions