diff options
| author | yangwei <[email protected]> | 2024-10-22 19:08:47 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-10-22 19:08:47 +0800 |
| commit | 777986431587131db7f72a3eee2a01c334b440fc (patch) | |
| tree | 76081baf26d588159c97a82e9643bf42afab21f9 | |
| parent | d72ba96859fab28909a343ce4082a18eb50b4002 (diff) | |
✨ feat(tcp nouse timeout): set as closing timeout when stream close
| -rw-r--r-- | src/dealpkt/deal_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dealpkt/deal_tcp.c b/src/dealpkt/deal_tcp.c index a494cac..9699adb 100644 --- a/src/dealpkt/deal_tcp.c +++ b/src/dealpkt/deal_tcp.c @@ -2491,7 +2491,7 @@ static int tcp_deal_nouse_stream(struct streamindex *pindex,const void *this_iph return PASS; } - if(this_tcphdr->th_flags & TH_FIN || this_tcphdr->th_flags & TH_RST) + if(this_tcphdr->th_flags & TH_FIN || this_tcphdr->th_flags & TH_RST || pdetail_pr->link_state==STREAM_LINK_CLOSE) { struct stream_list *lru_list_root=&(G_MESA_GLOBAL_STREAM[pstream->threadnum]->tcpList[pstream->stream_state]); timeouts_add(lru_list_root->streamindex_timer, &pindex->timeout, tcp_closing_timeout*1000+g_CurrentTime_ms); |
