From 0c1fe62a2bd5da5b40f1cb407f58a2e06691fe09 Mon Sep 17 00:00:00 2001 From: vearne Date: Thu, 19 Sep 2024 19:39:51 +0800 Subject: [PATCH] update http2/processor.go --- http2/processor.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http2/processor.go b/http2/processor.go index 4222d3d..445840d 100644 --- a/http2/processor.go +++ b/http2/processor.go @@ -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 }