• wm4's avatar
    tls_gnutls: fix hang on disconnection · 2222f419
    wm4 authored
    GNUTLS_SHUT_RDWR means GnuTLS will keep waiting for the server's
    termination reply. But since we don't shutdown the TCP connection at
    this point yet, GnuTLS will just keep skipping actual data from the
    server, which basically is perceived as hang.
    
    Use GNUTLS_SHUT_WR instead, which doesn't have this problem.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    2222f419
tls_gnutls.c 7.75 KB