When a listener is configured to deal with TLS upstreams, we use the SNI
field of the TLS ClientHello message to decide where to send the traffic.
Therefore, a buffer of 1024 bytes was used to temporarily store this
message. However, a TLS ClientHello message can be larger than that, up
to 16K bytes.
So now the first few bytes are read and manually parsed to find out how
long the message is. And then the entire ClientHello message is
retrieved.
So hopefully that will fix the issue causing the ClientHello
determination to fail.
Closes#10
Signed-off-by: Jacob Kiers <code@kiers.eu>