Lower log-level for IP addr ctor from string

As many time these functions are called on untrusted data the criticality
of this error condition is hard to guess without context.
Added sql error and request status
Added constructor for buffered socket
fix possible overflow when pad_len == cap_len for tls parser
fix memory leak caused by unjoined pthreads

Avoid memory leak by starting pthread detached since we don't care of
the results.