Skip to content
This repository was 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
fsyxhua wants to merge 2 commits into
things-go:masterfrom
fsyxhua:master
Open

Fix the problem of tcp data confusion caused by tcp retransimision..#15
fsyxhua wants to merge 2 commits into
things-go:masterfrom
fsyxhua:master

Conversation

@fsyxhua

@fsyxhua fsyxhua commented Oct 10, 2021

Copy link
Copy Markdown

No description provided.

@ymmemo

ymmemo commented Feb 7, 2022

Copy link
Copy Markdown

Is this the solution to the issue #12 ?

@thinkgos

Copy link
Copy Markdown
Member

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

@ymmemo

ymmemo commented May 30, 2022

Copy link
Copy Markdown

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

@thinkgos

thinkgos commented May 30, 2022

Copy link
Copy Markdown
Member

@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