Skip to content

Commit 3aecd11

Browse files
avoid buffering skipped capsules (#290)
1 parent 683e220 commit 3aecd11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (s *Session) parseNextCapsule() error {
169169
}
170170
default:
171171
// unknown capsule, skip it
172-
if _, err := io.ReadAll(r); err != nil {
172+
if _, err := io.Copy(io.Discard, r); err != nil {
173173
return err
174174
}
175175
}

0 commit comments

Comments
 (0)