empty setting for server will omit server haeder
do not call SSL_shutdown twice when the first call completed the shutdown already