summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cf77814)
Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
if len(data) < MinPktLength {
return false
}
if len(data) < MinPktLength {
return false
}
+ if !p.Encless && len(data) > len(p.bufR)-S20BS {
+ return false
+ }
var out []byte
p.BusyR.Lock()
if p.Encless {
var out []byte
p.BusyR.Lock()
if p.Encless {
+
+func TestTransportBigger(t *testing.T) {
+ tmp := make([]byte, MTUMax*4)
+ Rand.Read(tmp)
+ peer.PktProcess(tmp, Dummy{nil}, true)
+}