common: Fix read hangs in http-stream1 with TLS connection
common: Fix read hangs in http-stream1 with TLS connection

Fix read hangs in http-stream1 with TLS connections. This happens
when more than 1024 bytes of data are available for reading. The
underlying buffering mechanism doesn't seem to correctly trigger
the source again.

Closes #2296
Reviewed-by: Marius Vollmer <bb11c6e942c5cc765df5f04da146b3198127a7a3@redhat.com>

Scribery/cockpit,moolitayer/cockpit,larskarlitski/cockpit,sgallagher/cockpit,petervo/cockpit,mareklibra/cockpit,evol262/cockpit,darioajr/cockpit,vbatts/cockpit,larsu/cockpit,cockpit-project/cockpit,vanloswang/cockpit,cockpituous/cockpit,martinpitt/cockpit,xhad/cockpit,vbatts/cockpit,garrett/cockpit,andreasn/cockpit,andreasn/cockpit,matobet/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,evol262/cockpit,arilivigni/cockpit,dperpeet/cockpit,nmav/cockpit,deryni/cockpit,matobet/cockpit,FireDrunk/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,vanloswang/cockpit,arilivigni/cockpit,deryni/cockpit,cockpituous/cockpit,deryni/cockpit,harishanand95/cockpit,Thermionix/cockpit,jscotka/cockpit,zigitax/cockpit,dperpeet/cockpit,xhad/cockpit,dperpeet/cockpit,larskarlitski/cockpit,xhad/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,vanloswang/cockpit,nmav/cockpit,moolitayer/cockpit,larskarlitski/cockpit,arilivigni/cockpit,stefwalter/cockpit,petervo/cockpit,Armstrong1992/cockpit,Scribery/cockpit,larskarlitski/cockpit,larsu/cockpit,michalskrivanek/cockpit,deryni/cockpit,vanloswang/cockpit,petervo/cockpit,fridex/cockpit,cockpit-project/cockpit,sgallagher/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,denysvitali/cockpit,mvollmer/cockpit,jscotka/cockpit,firebitsbr/cockpit,haiyangd/cockpit_view,larskarlitski/cockpit,evol262/cockpit,garrett/cockpit,SotolitoLabs/cockpit,haiyangd/cockpit_view,evol262/cockpit,xhad/cockpit,evol262/cockpit,sgallagher/cockpit,matobet/cockpit,dperpeet/cockpit,harishanand95/cockpit,Scribery/cockpit,mvollmer/cockpit,Thermionix/cockpit,Thermionix/cockpit,petervo/cockpit,Armstrong1992/cockpit,jscotka/cockpit,stefwalter/cockpit,garrett/cockpit,jscotka/cockpit,cockpituous/cockpit,arilivigni/cockpit,stefwalter/cockpit,vanloswang/cockpit,Thermionix/cockpit,firebitsbr/cockpit,matobet/cockpit,fridex/cockpit,nmav/cockpit,darioajr/cockpit,mareklibra/cockpit,garrett/cockpit,mareklibra/cockpit,FireDrunk/cockpit,vbatts/cockpit,netzvieh/cockpit,andreasn/cockpit,cockpit-project/cockpit,FireDrunk/cockpit,moraleslazaro/cockpit,maxamillion/cockpit,stefwalter/cockpit,stefwalter/cockpit,firebitsbr/cockpit,netzvieh/cockpit,denysvitali/cockpit,garrett/cockpit,michalskrivanek/cockpit,Armstrong1992/cockpit,deryni/cockpit,martinpitt/cockpit,Scribery/cockpit,cockpituous/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,mvollmer/cockpit,FireDrunk/cockpit,sgallagher/cockpit,Armstrong1992/cockpit,xhad/cockpit,michalskrivanek/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,arilivigni/cockpit,larsu/cockpit,firebitsbr/cockpit,Thermionix/cockpit,vbatts/cockpit,martinpitt/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,cockpit-project/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,zigitax/cockpit,netzvieh/cockpit,maxamillion/cockpit,netzvieh/cockpit,netzvieh/cockpit,andreasn/cockpit,harishanand95/cockpit,harishanand95/cockpit,fridex/cockpit,martinpitt/cockpit,zigitax/cockpit,larskarlitski/cockpit,darioajr/cockpit,petervo/cockpit,darioajr/cockpit,arilivigni/cockpit,moolitayer/cockpit,sgallagher/cockpit,mareklibra/cockpit,zigitax/cockpit,cockpituous/cockpit,larsu/cockpit,cockpituous/cockpit,nmav/cockpit,fridex/cockpit,michalskrivanek/cockpit,Scribery/cockpit,andreasn/cockpit,harishanand95/cockpit,maxamillion/cockpit,xhad/cockpit,haiyangd/cockpit_view,arilivigni/cockpit,dperpeet/cockpit,andreasn/cockpit,zigitax/cockpit,vbatts/cockpit,dperpeet/cockpit,Armstrong1992/cockpit,netzvieh/cockpit,darioajr/cockpit,sgallagher/cockpit,xhad/cockpit,firebitsbr/cockpit,petervo/cockpit,vanloswang/cockpit,mareklibra/cockpit,denysvitali/cockpit,Scribery/cockpit,fridex/cockpit,maxamillion/cockpit,evol262/cockpit,harishanand95/cockpit,maxamillion/cockpit,moraleslazaro/cockpit,Scribery/cockpit,FireDrunk/cockpit,fridex/cockpit,matobet/cockpit,sgallagher/cockpit,dperpeet/cockpit,andreasn/cockpit,denysvitali/cockpit,jscotka/cockpit,larsu/cockpit,haiyangd/cockpit_view,vanloswang/cockpit,haiyangd/cockpit_view,moolitayer/cockpit,nmav/cockpit,jscotka/cockpit,deryni/cockpit,deryni/cockpit,petervo/cockpit,denysvitali/cockpit,Thermionix/cockpit,vbatts/cockpit,michalskrivanek/cockpit,moolitayer/cockpit,matobet/cockpit,larsu/cockpit,cockpit-project/cockpit,michalskrivanek/cockpit