analyzer: make http3/quic handling more reliable
This commit is contained in:
@@ -270,6 +270,11 @@ func extractCryptoFrames(r *bytes.Reader) ([]CryptoFrame, error) {
|
||||
return nil, err
|
||||
}
|
||||
default:
|
||||
// Unknown/extension frame type: if we already collected CRYPTO
|
||||
// frames, return them instead of failing hard.
|
||||
if len(frames) > 0 {
|
||||
return frames, nil
|
||||
}
|
||||
return nil, fmt.Errorf("unsupported frame type: %d", typ)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user