SSL error "record_overflow" while using Rabbitmq 2.8.7 and Erlang R14B04 (erts 5.8.5)

Hello,

We have a legacy application using Rabbitmq 2.8.7 and Erlan R14B04 (erts 5.8.5). Rabbitmq is running with SSL. The clients are using AMQP 0.8 SPEC to connect to it. One of the clients is not able to connect because of the authentication ( PLAIN username/password) failure.
RabbitMQ log showing this error -

=ERROR REPORT==== 28-Aug-2024::17:46:46 ===
SSL: hello: ./ssl_record.erl:366:Fatal error: record overflow

=ERROR REPORT==== 28-Aug-2024::17:46:46 ===
error on AMQP connection <0.13427.0>: {ssl_upgrade_error,"record overflow"}

=ERROR REPORT==== 28-Aug-2024::17:46:49 ===
error on AMQP connection <0.13434.0>: {ssl_upgrade_error,"record overflow"}

I suspect an issue with Erlang/SSL but not sure about it. I was not able find a way to debug this so far. Any help/advise would be appreciated to fix this issue.

Thank you

OTP-R14B04 is a really old release, that has been out of support for a long time.
I can see one bug that was fixed in OTP-22.3 that could be what you are experiencing.
I really suggest upgrading. The only workaround I could think of is send your data in smaller bits at the time. Or you could try to backport the solution form OTP-22.3 yourselves.

OTP-16258 Application(s): ssl

           Correct handling of TLS record limit in TLS-1.3. The
           max value differs from previous versions. Also the
           payload data max record check was broken, that is
           record overflow problems could occur if user sent large
           amounts of data.