Skip to content

Fix/remove setdeadline #2785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Mar 3, 2025

Conversation

No-SilverBullet
Copy link
Member

@No-SilverBullet No-SilverBullet commented Mar 2, 2025

What this PR does

https://pkg.go.dev/net#Conn.SetDeadline

// SetDeadline sets the read and write deadlines associated

// with the connection. It is equivalent to calling both

// SetReadDeadline and SetWriteDeadline.

Therefore, SetDeadline will cause the connection to be closed before the server returns completely, so SetDeadline is removed and SetTimeout is used instead. In addition, IdleConnTimeout is added to close idle connections after timeout to avoid invalid reuse.

Which issue(s) this PR fixes

#2302

xinfan.wu(吴歆帆) and others added 22 commits August 8, 2024 20:21
fix:set url to nil when destroy base invoker
reafactor:add comment at  BaseInvoker.Destroy()
…onfig options to avoid memory copying and allocation caused by dynamic expansion of slices.
Copy link

sonarqubecloud bot commented Mar 2, 2025

Copy link
Member

@marsevilspirit marsevilspirit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@FoghostCn
Copy link
Contributor

LGTM

@FoghostCn FoghostCn merged commit a826289 into apache:develop Mar 3, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants