fine bandwidth calculation, fix slide window calculated size too large, fix #330

This commit is contained in:
ffdfgdfg
2019-12-27 00:32:40 +08:00
parent 258be8e67a
commit 076fc8b2e1
4 changed files with 70 additions and 10 deletions

View File

@@ -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