fixing openssl handling
return -1 on connection close
set additional headers for sqlview