Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Fix the problem of tcp data confusion caused by tcp retransimision.. #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fsyxhua
Copy link

@fsyxhua fsyxhua commented Oct 10, 2021

No description provided.

@ymmemo
Copy link

ymmemo commented Feb 7, 2022

Is this the solution to the issue #12 ?

@thinkgos
Copy link
Member

这个参数可以通过with进行修改. 如果要避免这个问题.在读数据前把缓存先全读出来. 目前由于没有环境,所以这个一直没弄

@ymmemo
Copy link

ymmemo commented May 30, 2022

@fsyxhua @thinkgos
请问这个是否可以解决issue #12
是否有机会并回master?

@thinkgos
Copy link
Member

thinkgos commented May 30, 2022

@ymmemo 这个其实并没有解决, 你可以尝试一下,在发送本次请求之前,将读缓冲区内的数据全读取出来扔掉,然后再发送请求.
理论上,对于TCP这个功能,可以借鉴sql库, 对连接采用池化. 对超时请求错误的连接进行重置,就不会发现这种事了.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants