• Martin Storsjö's avatar
    tls: Use custom IO to read from the URLContext · d15eec4d
    Martin Storsjö authored
    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.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    d15eec4d
tls.c 14 KB