fix crash issue: cannot share from non-share-pointer with shared_from_this
fix issue: init http client manager
fix compilation error
fix crash issue: vector::push_back()->copy->double free crash
do not check state since it is updated outside