Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Fixes the MSize comparison when negociating msize with server
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
  • Loading branch information
simonferquel committed Oct 4, 2016
1 parent 5a23906 commit b8387ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func clientnegotiate(ctx context.Context, ch Channel, version string) (string, e
return "", fmt.Errorf("unsupported server version: %v", version)
}

if int(v.MSize) > ch.MSize() {
if int(v.MSize) < ch.MSize() {
// upgrade msize if server differs.
ch.SetMSize(int(v.MSize))
}
Expand Down

0 comments on commit b8387ce

Please sign in to comment.