Skip to content

Fix/remove setdeadline#2785

Merged
FoghostCn merged 22 commits intoapache:developfrom
No-SilverBullet:fix/remove_setdeadline
Mar 3, 2025
Merged

Fix/remove setdeadline#2785
FoghostCn merged 22 commits intoapache:developfrom
No-SilverBullet:fix/remove_setdeadline

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.
@sonarqubecloud
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