commit f717cf67aaf232164ee121c1d3b1ef669808e94f from: Stephen Day via: GitHub date: Tue Oct 04 15:13:23 2016 UTC Merge pull request #28 from simonferquel/msize_negociation_fix Fixes the MSize comparison when negociating msize with server commit - 5a239064dbe9aba79f7f9796b4aea7b74cef30fc commit + f717cf67aaf232164ee121c1d3b1ef669808e94f blob - ee72e88d1e2a28e9e88d02d690de78d79ef3d246 blob + ac301cabe46e1eb22162b85c9d69f235414b3af6 --- version.go +++ version.go @@ -38,7 +38,7 @@ func clientnegotiate(ctx context.Context, ch Channel, 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)) }