TLS with Haproxy doesn't work
I'm using SSL-offloading with haproxy and the unix socket. I've applied the patch from #22 (closed) and I think that's fixed one problem I had. The problem I face now is that as soon as I've authenticated, haproxy reports the connection the unix socket is closed, and then the client connection closes. The client then tries to reestablish, does so and then the same thing happens again. This happens until the client gives up and reports an error. DTLS works fine but pure TLS over TCP is where this problem occurs. Removing haproxy from the setup corrects the problem. I've tried playing with timeout options but can't get it working.
Haproxy log:
00000000:https.accept(0005)=0006 from [0.0.0.0:37785]
00000001:https.accept(0005)=0008 from [0.0.0.0:10148]
00000001:vpn.srvcls[0008:0009]
00000001:vpn.clicls[0008:0009]
00000001:vpn.closed[0008:0009]
00000002:https.accept(0005)=0008 from [0.0.0.0:10149]
00000002:vpn.srvcls[0008:0009]
00000002:vpn.clicls[0008:0009]
00000002:vpn.closed[0008:0009]
00000003:https.accept(0005)=0008 from [0.0.0.0:10150]
00000000:vpn.srvcls[0006:0007]
00000000:vpn.clicls[0006:0007]
00000000:vpn.closed[0006:0007]
00000003:vpn.srvcls[0008:0009]
00000003:vpn.clicls[0008:0009]
00000003:vpn.closed[0008:0009]
Thanks!