• Aman Gupta's avatar
    This fixes a deadlock while reading a chunked https response, if · 9c8922ac
    Aman Gupta authored
    multiple_requests=1 is also set. Without an EOF to signal the end of
    the last chunk, tls_read gets stuck forever trying to read more data
    than is available. This occurs with the http protocol reproducibly,
    because http.c always reads 4kb at a time, and the last chunk of an
    http response is often much smaller.
    
    After this commit, tls_read always returns any buffered plaintext
    first before attempting to read more encrypted data off the
    underlying tcp socket.
    Signed-off-by: 's avatarRodger Combs <rodger.combs@gmail.com>
    9c8922ac
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...