Skip to content

Commit a1a8059

Browse files
committed
Remove packet format error check
1 parent 6fccabe commit a1a8059

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

protocol/czar/mux.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,6 @@ func (m *Mux) Recv() {
234234
}
235235
cmd = buf[0]
236236
idx = buf[1]
237-
if cmd >= 0x04 {
238-
// Packet format error, connection closed.
239-
m.con.Close()
240-
break
241-
}
242237
switch cmd {
243238
case 0x00:
244239
// Make sure the stream has been closed properly.

0 commit comments

Comments
 (0)