set timeout to ini default timeout if not set

Not sure if ini_get("default_socket_timeout") always returns a proper value but this should do the trick