mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-07 07:46:54 +00:00
fine bandwidth calculation, fix slide window calculated size too large, fix #330
This commit is contained in:
@@ -246,6 +246,15 @@ func (Self *MuxPackager) UnPack(reader io.Reader) (n uint16, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func (Self *MuxPackager) reset() {
|
||||
Self.Id = 0
|
||||
Self.Flag = 0
|
||||
Self.Length = 0
|
||||
Self.Content = nil
|
||||
Self.ReadLength = 0
|
||||
Self.Window = 0
|
||||
}
|
||||
|
||||
const (
|
||||
ipV4 = 1
|
||||
domainName = 3
|
||||
|
Reference in New Issue
Block a user