souphttpsrc: dynamically adjust blocksize
authorThiago Santos <thiagossantos@gmail.com>
Sun, 19 Jun 2016 05:08:25 +0000 (02:08 -0300)
committerThiago Santos <thiagossantos@gmail.com>
Wed, 29 Jun 2016 12:51:02 +0000 (09:51 -0300)
commit11c61f14bf98946476e3dfe31e7af895604cbcbe
tree113618ded58b81cf5c7e30d88c53914eb9b73ef0
parent75963b47f4e5a9decadd37af908ee3759506e6f4
souphttpsrc: dynamically adjust blocksize

Update the blocksize depending on how much is obtained from a read
of the input stream. This avoids doing too many reads in small chunks
when larger amounts of data are available and also prevents using
a very large memory area to read a small chunk of data.

https://bugzilla.gnome.org/show_bug.cgi?id=767833
ext/soup/gstsouphttpsrc.c
ext/soup/gstsouphttpsrc.h