XUDP practice: MUST check the flag first & Add more comments

This commit is contained in:
RPRX
2023-04-16 21:15:27 +00:00
committed by GitHub
parent 9f8e9e8e64
commit b4c1a56026
3 changed files with 14 additions and 11 deletions

View File

@@ -138,7 +138,7 @@ func (w *ServerWorker) handleStatusNew(ctx context.Context, meta *FrameMetadata,
}
}
if meta.GlobalID != [8]byte{} {
if meta.GlobalID != [8]byte{} { // MUST ignore empty Global ID
mb, err := NewPacketReader(reader, &meta.Target).ReadMultiBuffer()
if err != nil {
return err