Keep sending want lines if the server doesn't anwer a flush
Keep sending want lines if the server doesn't anwer a flush

Some servers take a long time to answer and expect us to keep sending
want lines; otherwise they close the connection. Avoid this by waiting
for one second for the server to answer. If the timeout runs out,
treat is as a NAK and keep sending want lines.

Signed-off-by: Carlos Martín Nieto <ab5e2bca84933118bbc9d48ffaccce3bac4eeb64@cmartin.tk>

KTXSoftware/libgit2,jflesch/libgit2-mariadb,kenprice/libgit2,falqas/libgit2,mcanthony/libgit2,ardumont/libgit2,leoyanggit/libgit2,maxiaoqian/libgit2,Aorjoa/libgit2_maked_lib,dleehr/libgit2,mingyaaaa/libgit2,mingyaaaa/libgit2,mrksrm/Mingijura,magnus98/TEST,amyvmiwei/libgit2,oaastest/libgit2,evhan/libgit2,iankronquist/libgit2,iankronquist/libgit2,mhp/libgit2,dleehr/libgit2,leoyanggit/libgit2,yosefhackmon/libgit2,spraints/libgit2,yosefhackmon/libgit2,iankronquist/libgit2,skabel/manguse,sygool/libgit2,t0xicCode/libgit2,mingyaaaa/libgit2,joshtriplett/libgit2,kenprice/libgit2,t0xicCode/libgit2,maxiaoqian/libgit2,t0xicCode/libgit2,chiayolin/libgit2,JIghtuse/libgit2,Aorjoa/libgit2_maked_lib,jeffhostetler/public_libgit2,yongthecoder/libgit2,kissthink/libgit2,linquize/libgit2,rcorre/libgit2,Snazz2001/libgit2,raybrad/libit2,yosefhackmon/libgit2,Corillian/libgit2,sygool/libgit2,falqas/libgit2,whoisj/libgit2,saurabhsuniljain/libgit2,swisspol/DEMO-libgit2,joshtriplett/libgit2,linquize/libgit2,dleehr/libgit2,spraints/libgit2,claudelee/libgit2,stewid/libgit2,swisspol/DEMO-libgit2,amyvmiwei/libgit2,jflesch/libgit2-mariadb,Aorjoa/libgit2_maked_lib,sim0629/libgit2,linquize/libgit2,maxiaoqian/libgit2,mhp/libgit2,nacho/libgit2,chiayolin/libgit2,whoisj/libgit2,since2014/libgit2,magnus98/TEST,Snazz2001/libgit2,mingyaaaa/libgit2,maxiaoqian/libgit2,rcorre/libgit2,zodiac/libgit2.js,Tousiph/Demo1,raybrad/libit2,Tousiph/Demo1,magnus98/TEST,mrksrm/Mingijura,linquize/libgit2,joshtriplett/libgit2,joshtriplett/libgit2,MrHacky/libgit2,claudelee/libgit2,JIghtuse/libgit2,saurabhsuniljain/libgit2,sim0629/libgit2,MrHacky/libgit2,whoisj/libgit2,amyvmiwei/libgit2,whoisj/libgit2,yosefhackmon/libgit2,skabel/manguse,JIghtuse/libgit2,swisspol/DEMO-libgit2,zodiac/libgit2.js,dleehr/libgit2,amyvmiwei/libgit2,mcanthony/libgit2,sim0629/libgit2,yongthecoder/libgit2,oaastest/libgit2,dleehr/libgit2,mrksrm/Mingijura,mcanthony/libgit2,Tousiph/Demo1,Snazz2001/libgit2,swisspol/DEMO-libgit2,Tousiph/Demo1,kissthink/libgit2,stewid/libgit2,iankronquist/libgit2,rcorre/libgit2,jamieleecool/ptest,oaastest/libgit2,Aorjoa/libgit2_maked_lib,sygool/libgit2,JIghtuse/libgit2,sygool/libgit2,JIghtuse/libgit2,saurabhsuniljain/libgit2,yongthecoder/libgit2,kenprice/libgit2,oaastest/libgit2,nokiddin/libgit2,amyvmiwei/libgit2,mhp/libgit2,Corillian/libgit2,Tousiph/Demo1,ardumont/libgit2,KTXSoftware/libgit2,claudelee/libgit2,t0xicCode/libgit2,claudelee/libgit2,kissthink/libgit2,kissthink/libgit2,yosefhackmon/libgit2,mingyaaaa/libgit2,rcorre/libgit2,ardumont/libgit2,t0xicCode/libgit2,swisspol/DEMO-libgit2,mingyaaaa/libgit2,skabel/manguse,magnus98/TEST,sygool/libgit2,raybrad/libit2,mcanthony/libgit2,jeffhostetler/public_libgit2,stewid/libgit2,since2014/libgit2,stewid/libgit2,skabel/manguse,rcorre/libgit2,joshtriplett/libgit2,jeffhostetler/public_libgit2,leoyanggit/libgit2,ardumont/libgit2,KTXSoftware/libgit2,kissthink/libgit2,yosefhackmon/libgit2,MrHacky/libgit2,Snazz2001/libgit2,jflesch/libgit2-mariadb,mcanthony/libgit2,amyvmiwei/libgit2,raybrad/libit2,chiayolin/libgit2,zodiac/libgit2.js,nacho/libgit2,jflesch/libgit2-mariadb,jflesch/libgit2-mariadb,oaastest/libgit2,raybrad/libit2,jamieleecool/ptest,nokiddin/libgit2,KTXSoftware/libgit2,since2014/libgit2,whoisj/libgit2,Corillian/libgit2,saurabhsuniljain/libgit2,mcanthony/libgit2,jeffhostetler/public_libgit2,chiayolin/libgit2,jeffhostetler/public_libgit2,sim0629/libgit2,joshtriplett/libgit2,iankronquist/libgit2,Corillian/libgit2,Corillian/libgit2,skabel/manguse,Tousiph/Demo1,linquize/libgit2,falqas/libgit2,since2014/libgit2,claudelee/libgit2,MrHacky/libgit2,jeffhostetler/public_libgit2,evhan/libgit2,maxiaoqian/libgit2,nacho/libgit2,leoyanggit/libgit2,since2014/libgit2,spraints/libgit2,jflesch/libgit2-mariadb,dleehr/libgit2,maxiaoqian/libgit2,yongthecoder/libgit2,rcorre/libgit2,chiayolin/libgit2,iankronquist/libgit2,spraints/libgit2,spraints/libgit2,falqas/libgit2,swisspol/DEMO-libgit2,kenprice/libgit2,falqas/libgit2,kissthink/libgit2,magnus98/TEST,mrksrm/Mingijura,mhp/libgit2,whoisj/libgit2,jamieleecool/ptest,t0xicCode/libgit2,nokiddin/libgit2,mhp/libgit2,saurabhsuniljain/libgit2,sim0629/libgit2,stewid/libgit2,saurabhsuniljain/libgit2,ardumont/libgit2,magnus98/TEST,stewid/libgit2,KTXSoftware/libgit2,mhp/libgit2,sygool/libgit2,nokiddin/libgit2,Corillian/libgit2,KTXSoftware/libgit2,JIghtuse/libgit2,linquize/libgit2,skabel/manguse,falqas/libgit2,MrHacky/libgit2,zodiac/libgit2.js,ardumont/libgit2,MrHacky/libgit2,spraints/libgit2,Snazz2001/libgit2,mrksrm/Mingijura,Aorjoa/libgit2_maked_lib,kenprice/libgit2,claudelee/libgit2,oaastest/libgit2,nacho/libgit2,evhan/libgit2,Snazz2001/libgit2,evhan/libgit2,zodiac/libgit2.js,leoyanggit/libgit2,since2014/libgit2,kenprice/libgit2,chiayolin/libgit2,nokiddin/libgit2,yongthecoder/libgit2,mrksrm/Mingijura,nokiddin/libgit2,jamieleecool/ptest,leoyanggit/libgit2,yongthecoder/libgit2,sim0629/libgit2