change temporarily the socket to non-blocking in readallssl_timeout, otherwise if connection drops while in the middle of packet read, the SSL_read will hang and our timeout will not be enforced
make log static, it was always supposed to be so, but was not and was wasting a filehandle for every log entry