souphttpsrc: check difference in time from the last socket read before changing blocksize
authorNicola Murino <nicola.murino@gmail.com>
Mon, 17 Dec 2018 18:18:43 +0000 (19:18 +0100)
committerNicola Murino <nicola.murino@gmail.com>
Mon, 17 Dec 2018 18:27:48 +0000 (19:27 +0100)
commit1081a2ee50885f69375f12144bda6ae3bf3c3498
tree2535ac2221326b511715aa3f9b20596e2aeba875
parentdab84b14dd264af46f683a6d4a33622f730e2b5a
souphttpsrc: check difference in time from the last socket read before changing blocksize

If the pipeline consumes the data slower than the available network speed,
for example because sync=true, is useless to increase the blocksize and
reading in too big blocksizes can cause the connection to time out

Closes #463
ext/soup/gstsouphttpsrc.c
ext/soup/gstsouphttpsrc.h