From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45821: 28.0.50; Add UDP support for Emacs on Windows Date: Mon, 04 Oct 2021 20:59:29 +0300 Message-ID: <838rz8658e.fsf@gnu.org> References: <87turmhvub.fsf@gnus.org> <83lfcyc865.fsf@gnu.org> <87k0shqjq0.fsf@gmail.com> <87k0llngby.fsf@gnus.org> <87czou3qz0.fsf@gmail.com> <87k0j13ob1.fsf@gmail.com> <87o884y94w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22727"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 45821@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 04 20:00:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXSGJ-0005iX-2K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 20:00:27 +0200 Original-Received: from localhost ([::1]:52272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXSGH-0001ba-BK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 14:00:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXSFu-0001aw-U1 for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 14:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXSFu-00062n-KC for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 14:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXSFu-0007DM-Bv for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 14:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Oct 2021 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45821 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 45821-submit@debbugs.gnu.org id=B45821.163337038827681 (code B ref 45821); Mon, 04 Oct 2021 18:00:02 +0000 Original-Received: (at 45821) by debbugs.gnu.org; 4 Oct 2021 17:59:48 +0000 Original-Received: from localhost ([127.0.0.1]:38354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXSFf-0007CP-Qt for submit@debbugs.gnu.org; Mon, 04 Oct 2021 13:59:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXSFd-0007CB-L5 for 45821@debbugs.gnu.org; Mon, 04 Oct 2021 13:59:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53864) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXSFY-0005jZ-92; Mon, 04 Oct 2021 13:59:40 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4960 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXSFX-0008Tz-Pw; Mon, 04 Oct 2021 13:59:40 -0400 In-Reply-To: <87o884y94w.fsf@gmail.com> (message from Robert Pluim on Mon, 04 Oct 2021 19:47:43 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216383 Archived-At: > From: Robert Pluim > Cc: Eli Zaretskii , 45821@debbugs.gnu.org > Date: Mon, 04 Oct 2021 19:47:43 +0200 > > I did some more debugging on this. What's happening is that in > 'wait_reading_process_output', when calling gnutls_try_handshake, > weʼre exceeding GNUTLS_EMACS_HANDSHAKES_LIMIT. That has a value of > 6000, so my suspicion is that because the reader_thread no longer > actually reads, but just calls pfn_WSAEventSelect, > 'wait_reading_process_output' just spins. It spins why? because sys_select doesn't wait at all? or doesn't wait on a handle of the reader thread? IOW, that would mean the simple state machine between the reader thread and sys_select somehow became broken, and the question is how? Or looking at it from a different aspect: how is calling pfn_WSAEventSelect different from calling _sys_read_ahead, for the purposes of the dance between the reader thread and sys_select?