Subject: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs

From: Eli Zaretskii <[email-masked]>
Date: Tue, 27 Jul 2021 20:35:12 +0300

> Disposition-Notification-To: [email-masked]
> From: Rajeev N <[email-masked]>
> Cc: Lars Ingebrigtsen <[email-masked]>,  [email-masked],  Eli
>  Zaretskii <[email-masked]>
> Date: Tue, 27 Jul 2021 13:22:54 -0400
> 
> Another input that may help resolve the issue:
> 
> In the pselect loop- file descriptor 19 is show in CLOSE_WAIT state by lsof.
> 
> lsof:
> 
> emacs   66152 rajeev   19u     IPv4            2567759      0t0      TCP hp:37994->wildebeest.gnu.org:https (CLOSE_WAIT)

If the remote host closed the connection, why isn't our sentinel being
called and the connection closed?