adding read_timeout setting outside thread as well