Descriptiongo.crypto/ssh: improve channel max packet handling
This proposal moves the check for max packet into
channel.writePacket. Callers should be aware they cannot
pass a buffer larger than max packet. This is only a
concern to chanWriter.Write and appropriate guards are
already in place.
There was some max packet handling in transport.go but it was
incorrect. This has been removed.
This proposal also cleans up session_test.go.
Patch Set 1 #Patch Set 2 : diff -r b40d39ad1699 https://code.google.com/p/go.crypto #Patch Set 3 : diff -r b40d39ad1699 https://code.google.com/p/go.crypto #Patch Set 4 : diff -r b40d39ad1699 https://code.google.com/p/go.crypto #Patch Set 5 : diff -r b40d39ad1699 https://code.google.com/p/go.crypto #Patch Set 6 : diff -r b40d39ad1699 https://code.google.com/p/go.crypto #
Total comments: 8
Patch Set 7 : diff -r b40d39ad1699 https://code.google.com/p/go.crypto #Patch Set 8 : diff -r 69c3cdaaffb7 https://code.google.com/p/go.crypto #
MessagesTotal messages: 9
|
||||||||||||||||||||||||||||||||||||||||||||||