On Thu, 2021-07-15 at 07:45 +1000, Alistair Leslie-Hughes wrote:
The poll function currently always returns 0 which signals to gnutls that no data is available. However this might not be the case. Using the default gnutls_system_recv_timeout function returns the expect value when data is available.
gnutls_system_recv_timeout expects a file descriptor it can call select() on, typically a socket. Our transport is not a file descriptor.