python/ovs/stream: Fix Stream.connect() retval for incomplete connection.
python/ovs/stream: Fix Stream.connect() retval for incomplete connection.

This code is a backport from the upstream OVS (commit dcb66da):

If the loop condition in Stream.connect() was false, which is especially
likely for TCP connections, then Stream.connect() would return None,
which violates its documented behavior.  This commit fixes the problem.

Reported-by: Isaku Yamahata <4b3abd66323411eeceff090ab3754dd766fc4b25@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>

gareging/SDN_Framework,Zouyiran/ryu,gopchandani/ryu,Zouyiran/ryu,Tejas-Subramanya/RYU_MEC,Tejas-Subramanya/RYU_MEC,John-Lin/ryu,jkoelker/ryu,openvapour/ryu,darjus-amzn/ryu,zangree/ryu,fkakuma/ryu,ntts-clo/ryu,ttsubo/ryu,zangree/ryu,jazzmes/ryu,fujita/ryu,Zouyiran/ryu,OpenState-SDN/ryu,osrg/ryu,evanscottgray/ryu,ysywh/ryu,lagopus/ryu-lagopus-ext,alyosha1879/ryu,gareging/SDN_Framework,TakeshiTseng/ryu,diogommartins/ryu,diogommartins/ryu,yamt/ryu,darjus-amzn/ryu,OpenState-SDN/ryu,ntts-clo/mld-ryu,o3project/ryu-oe,iwaseyusuke/ryu,yamt/ryu,ynkjm/ryu,OpenState-SDN/ryu,fujita/ryu,OpenState-SDN/ryu,John-Lin/ryu,gareging/SDN_Framework,fujita/ryu,ysywh/ryu,osrg/ryu,ynkjm/ryu,pichuang/ryu,Zouyiran/ryu,unifycore/ryu,StephenKing/ryu,ntts-clo/ryu,habibiefaried/ryu,zyq001/ryu,lzppp/mylearning,StephenKing/ryu,lagopus/ryu-lagopus-ext,haniehrajabi/ryu,lagopus/ryu-lagopus-ext,muzixing/ryu,yamt/ryu,lsqtongxin/ryu,muzixing/ryu,Tejas-Subramanya/RYU_MEC,jkoelker/ryu,elahejalalpour/ELRyu,castroflavio/ryu,shinpeimuraoka/ryu,fkakuma/ryu,lzppp/mylearning,lsqtongxin/ryu,Tejas-Subramanya/RYU_MEC,osrg/ryu,Zouyiran/ryu,sivaramakrishnansr/ryu,elahejalalpour/ELRyu,gopchandani/ryu,John-Lin/ryu,pichuang/ryu,jkoelker/ryu,Tesi-Luca-Davide/ryu,darjus-amzn/ryu,John-Lin/ryu,samrussell/ryu,TakeshiTseng/ryu,torufuru/OFPatchPanel,citrix-openstack/build-ryu,osrg/ryu,lzppp/mylearning,lsqtongxin/ryu,ynkjm/ryu,OpenState-SDN/ryu,o3project/ryu-oe,hisaharu/ryu,haniehrajabi/ryu,muzixing/ryu,sivaramakrishnansr/ryu,jalilm/ryu,openvapour/ryu,alyosha1879/ryu,torufuru/oolhackathon,shinpeimuraoka/ryu,samrussell/ryu,lagopus/ryu-lagopus-ext,alanquillin/ryu,zangree/ryu,jalilm/ryu,unifycore/ryu,gareging/SDN_Framework,citrix-openstack-build/ryu,haniehrajabi/ryu,StephenKing/summerschool-2015-ryu,ttsubo/ryu,shinpeimuraoka/ryu,ysywh/ryu,hisaharu/ryu,jalilm/ryu,mikhaelharswanto/ryu,citrix-openstack-build/ryu,pichuang/ryu,iwaseyusuke/ryu,diogommartins/ryu,ynkjm/ryu,StephenKing/summerschool-2015-ryu,alanquillin/ryu,habibiefaried/ryu,alanquillin/ryu,ynkjm/ryu,umkcdcrg01/ryu_openflow,iwaseyusuke/ryu,yamada-h/ryu,iwaseyusuke/ryu,fujita/ryu,TakeshiTseng/ryu,StephenKing/summerschool-2015-ryu,takahashiminoru/ryu,zyq001/ryu,yamt/ryu,openvapour/ryu,gopchandani/ryu,haniehrajabi/ryu,alanquillin/ryu,zyq001/ryu,darjus-amzn/ryu,StephenKing/ryu,castroflavio/ryu,evanscottgray/ryu,StephenKing/summerschool-2015-ryu,takahashiminoru/ryu,yamt/ryu,zyq001/ryu,elahejalalpour/ELRyu,ttsubo/ryu,muzixing/ryu,fkakuma/ryu,zyq001/ryu,sivaramakrishnansr/ryu,ttsubo/ryu,castroflavio/ryu,torufuru/OFPatchPanel,haniehrajabi/ryu,habibiefaried/ryu,lsqtongxin/ryu,hisaharu/ryu,jalilm/ryu,lzppp/mylearning,fujita/ryu,elahejalalpour/ELRyu,diogommartins/ryu,John-Lin/ryu,openvapour/ryu,ykaneko/ryu,Tesi-Luca-Davide/ryu,jazzmes/ryu,sivaramakrishnansr/ryu,fkakuma/ryu,shinpeimuraoka/ryu,iwaseyusuke/ryu,Tejas-Subramanya/RYU_MEC,muzixing/ryu,openvapour/ryu,pichuang/ryu,zangree/ryu,habibiefaried/ryu,pichuang/ryu,zangree/ryu,ykaneko/ryu,TakeshiTseng/ryu,ysywh/ryu,Tesi-Luca-Davide/ryu,gareging/SDN_Framework,StephenKing/ryu,darjus-amzn/ryu,evanscottgray/ryu,TakeshiTseng/ryu,ysywh/ryu,torufuru/oolhackathon,takahashiminoru/ryu,hisaharu/ryu,hisaharu/ryu,alyosha1879/ryu,umkcdcrg01/ryu_openflow,Tesi-Luca-Davide/ryu,fkakuma/ryu,yamada-h/ryu,takahashiminoru/ryu,ntts-clo/mld-ryu,umkcdcrg01/ryu_openflow,citrix-openstack/build-ryu,umkcdcrg01/ryu_openflow,umkcdcrg01/ryu_openflow,lsqtongxin/ryu,alanquillin/ryu,takahashiminoru/ryu,diogommartins/ryu,gopchandani/ryu,osrg/ryu,sivaramakrishnansr/ryu,alyosha1879/ryu,elahejalalpour/ELRyu,gopchandani/ryu,StephenKing/summerschool-2015-ryu,jalilm/ryu,lzppp/mylearning,mikhaelharswanto/ryu,Tesi-Luca-Davide/ryu,torufuru/oolhackathon,shinpeimuraoka/ryu,lagopus/ryu-lagopus-ext,StephenKing/ryu,ttsubo/ryu,habibiefaried/ryu,jazzmes/ryu