I have some tests in Ranch that get stuck when trying to send data using an ssl socket:
These tests send a 20MB file containing random data, emulating the file:sendfile function with normal sends.
What I can see from an initial look is that:
- The test itself gets stuck when trying to send via ssl:send -> tls_sender:send_data
- The tls_sender process gets stuck with the following stacktrace:
I can see this issue on Arch Linux (local and server), Ubuntu and macOS at the moment, so it's probably not platform-specific.
There was no such problems with OTP-21.3.7, for example: https://builds.ninenines.eu/logs/ranch/120/archlinux/
To reproduce you can do the following:
This will build OTP-21.3.8. If you already have it in the path don't include the ERLANG_OTP variable.