Adding timeout for ssl calls