I’m using Akka HTTP to run HTTP servers. They are mostly working fine, with exception of one major annoyance: when HTTPS server receives an HTTP connection, it just hangs. According to Wireshark it does not send anything as a response, so the HTTP client is waiting indefinitely (well, not indefinitely, but for a large timeouts) for response data that is never going to be sent.
This is a counter-intuitive behavior, since the last thing that I will try when I encounter such unresponsive server is to switch to HTTPS.
I made sample project which suffers from this problem and put it on Github: https://github.com/makkarpov/akka-tls-hangs-example
So I would be happy for any clues. Is this a misconfiguration of server, or Akka bug, or I was unluckily enough to hit a buggy version, or something else? If this is a misconfiguration - what is correct configuration then?