diff options
| author | liuxueli <[email protected]> | 2023-08-25 14:44:24 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-08-25 14:44:24 +0800 |
| commit | ad13ce5481be453b00918352131ee71f55238c51 (patch) | |
| tree | f00d8deba5568f5917f79ad46878515a5fdffca0 | |
| parent | 436542a35bcb9c8340b0b7d9126bac61de32e7f9 (diff) | |
OMPUB-1010: 控制报文未丢弃影响获取原始包的SID,从而导致断网
| -rw-r--r-- | src/tsg_entry.cpp | 9 | ||||
| -rw-r--r-- | src/tsg_proxy.cpp | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 491e0d6..3166310 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -1094,13 +1094,8 @@ int session_state_control_packet(const struct streaminfo *a_stream, void *payloa return 0; } - ret=tsg_parse_log_update_payload(a_stream, (const void *)payload, payload_len); - if(ret>=0) - { - return 1; - } - - return 0; + tsg_parse_log_update_payload(a_stream, (const void *)payload, payload_len); + return 1; } int session_state_sync_in_opening_and_closing(const struct streaminfo *a_stream, unsigned char state) diff --git a/src/tsg_proxy.cpp b/src/tsg_proxy.cpp index 1ec7276..7e3bc9f 100644 --- a/src/tsg_proxy.cpp +++ b/src/tsg_proxy.cpp @@ -587,7 +587,7 @@ void tsg_proxy_update_policy_fill(const struct streaminfo *stream, struct update cmsg->tcp_ack_route_ctx.len = server->route_ctx_len; cmsg->tcp_ack_route_ctx.buff = (char *)server->route_ctx; - update_segment_sids(&cmsg->tcp_seq_sids, segment_ids->sid_list+1, segment_ids->sz_sidlist-1); // delete intercept sid + update_segment_sids(&cmsg->tcp_ack_sids, segment_ids->sid_list+1, segment_ids->sz_sidlist-1); // delete intercept sid update_segment_sids(&cmsg->tcp_ack_sids, server->sid_list.sid_list, server->sid_list.sz_sidlist); if (client->wscale_set && server->wscale_set) { |
