I am receiving an error ‘Socket closed when connection was open’ when sending a large message on an SSL connection to RabbitMq using Pika.
The connection is a SelectConnection with TLSv1_2 protocol configuration
It fails for messages bigger than 130kB. Smaller messages go through fine. Without SSL, the same code works for much larger messages, even tens of megabytes are passed around flawlessly.
Environment:
- pika 0.10.0
- rabbitmq 3.6.9, erlang 19.2
- sender, receiver, and rabbitmq server on the same physical machine
- linux or macos
Any suggestion on what is happening and how to fix it?
thanks a lot