Skip to content

Commit

Permalink
update http2/processor.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vearne committed Sep 19, 2024
1 parent 471d44b commit 0c1fe62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http2/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ func (p *Processor) ProcessTCPPkg() {
// SYN/ACK/FIN
if len(payload) <= 0 {
if pkg.TCP.FIN {
slog.Info("got Fin package, close connection:%v", dc.String())
hc.TCPBuffer.Close()
delete(p.ConnRepository, dc)
} else {
hc.TCPBuffer.expectedSeq = int64(pkg.TCP.Seq) + int64(len(pkg.TCP.Payload))
hc.TCPBuffer.leftPointer = hc.TCPBuffer.expectedSeq
}
continue
}
Expand Down

0 comments on commit 0c1fe62

Please sign in to comment.