mirror of
https://github.com/SagerNet/sing-shadowsocks.git
synced 2025-04-03 20:07:40 +03:00
Update buffer usage
This commit is contained in:
parent
45a2ad9cd4
commit
ebbaadcae0
5 changed files with 6 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue