]> git.eshelyaron.com Git - emacs.git/commit
Fix problem where TLS connections would sometimes hang
authorDerek Zhou <derek@3qin.us>
Mon, 3 Aug 2020 05:56:22 +0000 (07:56 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 3 Aug 2020 05:56:29 +0000 (07:56 +0200)
commitf921feceb8cd8c52f281447c984d0b67a738a33c
tree4a6008542f6540bd8c03e229df67013c64dd3ef2
parenta325584281c4d8552917fcb97caed449acb7ee65
Fix problem where TLS connections would sometimes hang

* src/process.c (wait_reading_process_output): Before the select,
check every interesting gnutls stream for available data in the
buffer.  If some of them hit, and either there is no wait_proc or
the wait_proc is one of the gnutls streams with new data, set the
select timeout to 0 after the select, and merge the gnutls buffer
status into the select returns (bug#40665).  This fixes a problem
where TLS connections would sometimes hang.
src/process.c