-
Notifications
You must be signed in to change notification settings - Fork 3k
Buffer data if needed when using socket send nowait #9879
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
base: maint
Are you sure you want to change the base?
Conversation
CT Test Results 2 files 66 suites 26m 22s ⏱️ For more details on these failures, see this check. Results for commit fb132c1. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts
// Erlang/OTP Github Action Bot |
511bbb5
to
e20ed00
Compare
e20ed00
to
631ba35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't dare to approve ;-)
but browsed it and have no more comments at this stage.
631ba35
to
c62a08b
Compare
gen_tcp (or rather inets) have a builtin buffer when socket is blocked, controlled by high[low]_watermark. Implement buffering and async send for sockets in tls_sender, to improve performance when using sockets.
Did not enter passive mode when {active, N} triggered, i.e. activate was false. Also improve error handling Workaround cancel request on downgrade
Thus we can make send async if hanging on outgoing buffer.
c62a08b
to
fb132c1
Compare
Make socket usage behave like gen_tcp i.e. if socket would block buffer data up to high_watermark.