Open pxing-china opened 5 years ago
cc @bradfitz
@pxing-china I think you misunderstood the check. It wants to prevent BadCipher, ValidCipher. Given this order, the bad cipher will cause the connection to be rejected before trying the valid cipher. BadCiphers after ValidCiphers are fine because at least you tried all the valid ones first.
Reported against tip, 649b89377e91ad6dbe710784f9e662082d31a1ff
https://github.com/golang/go/blob/649b89377e91ad6dbe710784f9e662082d31a1ff/src/net/http/h2_bundle.go#L4021
the logic of this line is error(ValidCipher, BadCipher,BadCipher will go through), it should be