Replaced recursive implementation in http::Connection with loop.
Replaced recursive implementation in http::Connection with loop.

Review: https://reviews.apache.org/r/55539

kaysoky/mesos,dforsyth/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,Aman-Jain-14/customizedMesos,zmalik/mesos,abudnik/mesos,jpeach/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,jpeach/mesos,Gilbert88/mesos,dforsyth/mesos,reneploetz/mesos,zmalik/mesos,kaysoky/mesos,gsantovena/mesos,verizonlabs/mesos,abudnik/mesos,reneploetz/mesos,andschwa/mesos,dforsyth/mesos,verizonlabs/mesos,craimbert/mesos,chhsia0/mesos,Gilbert88/mesos,andschwa/mesos,andschwa/mesos,gsantovena/mesos,kaysoky/mesos,verizonlabs/mesos,yuquanshan/customizedMesos,chhsia0/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,jpeach/mesos,Aman-Jain-14/customizedMesos,zmalik/mesos,neilconway/mesos,jpeach/mesos,abudnik/mesos,asamerh4/mesos,verizonlabs/mesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,craimbert/mesos,craimbert/mesos,chhsia0/mesos,neilconway/mesos,yuquanshan/customizedMesos,kaysoky/mesos,craimbert/mesos,asamerh4/mesos,neilconway/mesos,dforsyth/mesos,chhsia0/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,kaysoky/mesos,asamerh4/mesos,abudnik/mesos,andschwa/mesos,yuquanshan/customizedMesos,kaysoky/mesos,neilconway/mesos,zmalik/mesos,reneploetz/mesos,gsantovena/mesos,dforsyth/mesos,verizonlabs/mesos,reneploetz/mesos,Gilbert88/mesos,abudnik/mesos,reneploetz/mesos,kaysoky/mesos,verizonlabs/mesos,gsantovena/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,craimbert/mesos,zmalik/mesos,andschwa/mesos,andschwa/mesos,asamerh4/mesos,andschwa/mesos,Gilbert88/mesos,jpeach/mesos,abudnik/mesos,abudnik/mesos,reneploetz/mesos,craimbert/mesos,dforsyth/mesos,jpeach/mesos,Gilbert88/mesos,zmalik/mesos,asamerh4/mesos,craimbert/mesos,verizonlabs/mesos,yuquanshan/customizedMesos,gsantovena/mesos,Gilbert88/mesos,asamerh4/mesos,neilconway/mesos,jpeach/mesos,dforsyth/mesos,chhsia0/mesos,gsantovena/mesos,neilconway/mesos,chhsia0/mesos