fix comparison
With this a PUT to two remotes that have different partial amounts transferred works reliably. I'm not sure though that it doesn't have fencepost errors.
This commit is contained in:
parent
9e070470f4
commit
8a341cd195
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ proxy proxydone proxymethods servermode (ClientSide clientrunst clientconn) remo
|
||||||
then runRemoteSideOrSkipFailed remoteside $ do
|
then runRemoteSideOrSkipFailed remoteside $ do
|
||||||
net $ sendBytes (Len chunklen) chunk nullMeterUpdate
|
net $ sendBytes (Len chunklen) chunk nullMeterUpdate
|
||||||
return r
|
return r
|
||||||
else if (n' <= remoteoffset)
|
else if (n' > remoteoffset)
|
||||||
then do
|
then do
|
||||||
let chunkoffset = remoteoffset - n
|
let chunkoffset = remoteoffset - n
|
||||||
let subchunklen = chunklen - chunkoffset
|
let subchunklen = chunklen - chunkoffset
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue