Always keep socat alive
If you're using a LISTEN command like OPENSSL-LISTEN
, TCP-LISTEN
, etc., the fork
option will spin off connections to a child process so that socat can continue receiving.
Example:
socat - OPENSSL-LISTEN:443,method=TLS1.2,verify=0,cert=cert.pem,key=key.pem,fork
Thanks to: https://unix.stackexchange.com/a/283289/15954