tls: Use custom IO to read from the URLContext

Multimedia / FFmpeg - Martin Storsjö [martin.st] - 21 May 2015 16:04 UTC

This avoids hijacking the fd, by reading using the normal URLContext functions instead. This allowing reading data that has been buffered in the underlying URLContext.

This avoids using the libraries own send functions that can cause SIGPIPE.

The fd is still used for polling the lowlevel socket, for waiting for retries.

d15eec4 tls: Use custom IO to read from the URLContext
libavformat/tls.c | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 102 insertions(+), 3 deletions(-)

  • Share