when forward the data between the two connections, if one end close the connection, this will cause panic when write to closed connection
add insecure option add idletimeout option