extract http_event_loop function
Merge branch 'master' of https://github.com/guonaihong/http_client