Update buffer usage

This commit is contained in:
世界 2022-07-26 11:16:21 +08:00
parent 45a2ad9cd4
commit ebbaadcae0
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 6 additions and 6 deletions

View file

@ -85,7 +85,7 @@ func (s *Service) newConnection(ctx context.Context, conn net.Conn, metadata M.M
header := common.Dup(_header)
defer header.Release()
_, err := header.ReadFrom(conn)
_, err := header.ReadOnceFrom(conn)
if err != nil {
return E.Cause(err, "read header")
} else if !header.IsFull() {