The sockets were initially set to active, which meant that data received immediately after the TLS handshake (before the socket was transferred to the handle_connection process) were received by the acceptor process and hence were not handled.
Just a very simple TCP echo server to get started with.