From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#45821: 28.0.50; Add UDP support for Emacs on Windows Date: Mon, 04 Oct 2021 19:47:43 +0200 Message-ID: <87o884y94w.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38051"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45821@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 04 19:48:19 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 1mXS4Z-0009jD-Je for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 19:48:19 +0200 Original-Received: from localhost ([::1]:45602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXS4X-00050K-Kh for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 13:48:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXS4I-0004xG-U0 for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 13:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXS4I-0005XB-Jk for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 13:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXS4I-0006vY-Hw for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 13:48:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87turmhvub.fsf@gnus.org> Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Oct 2021 17:48: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.163336967426614 (code B ref 45821); Mon, 04 Oct 2021 17:48:02 +0000 Original-Received: (at 45821) by debbugs.gnu.org; 4 Oct 2021 17:47:54 +0000 Original-Received: from localhost ([127.0.0.1]:38332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXS4A-0006vC-HN for submit@debbugs.gnu.org; Mon, 04 Oct 2021 13:47:54 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:45752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXS46-0006ub-T8 for 45821@debbugs.gnu.org; Mon, 04 Oct 2021 13:47:52 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id r10so15712070wra.12 for <45821@debbugs.gnu.org>; Mon, 04 Oct 2021 10:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:message-id:mime-version :content-transfer-encoding; bh=+Bvrii5A1Y/yuuP15The++PyWQMe+hW+1I0EFKX5gc4=; b=BSSpu7nOfbByfF2LiR3x1N59Yf+xsLNeMAHH5ifK/2r1v5zLWgykDaCQnKkaVoC11v maGf2jeKpjwM7/JCzzEwGKGhWqavpzUv7qnG/y6kERg0G32/85CwAdA/t78sHfWy1Ria WUymidFeoc3FjB9ZGxX5Q3Op7/Hkqm8yPCVbHNoYq3oaqBpbz2Kq/CtNYLYAfm69XE/Q /eXDRnNM5JuZlwM92XDTx6HIBLbm38AgoCMV0S+AxHpJz/FYW8w2UoARxbBl64E6ggCq yYyybvhjAzk7Ab1rIzsfWapjqpL49A9m7OrW356vQTyecRnxqBM0hSTJp8oqtqXtw3A/ HyAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :mime-version:content-transfer-encoding; bh=+Bvrii5A1Y/yuuP15The++PyWQMe+hW+1I0EFKX5gc4=; b=lBRRQOd/HObRi2AF0m3eLKTGAS7HhI+kib+glSMcgMEANMWHVskB88ZeSFRIxRcATa FViHlzMneiEx1pTOeITNd5hhuarg4vmypdblr8SG2kL3B+V64Coln/fba6VjsITG109f 8B9mq0AueJcT6r86U3yXoZlQJbzHkqh1YSbsZ5gH1FsyLmjc2zfVpM8N738qxPeZ8QVR K6oh3anBegMgSjPtN1BFK9etG7l6X050TQOJBzPPNuCEJtX9yjakgXv/XDSiArrmMnY6 M6G1h+Yc1Xz3Qvw7KzqexQX4nUe2VLzLpKm4Bhukshd5THYFlnsvDv5hFNkGmd7TyNC5 8AbA== X-Gm-Message-State: AOAM532sPAMLsokXLyJQR7Zyun7jNrbH4xTCnR9AdeqXFsDJFbLDCdSq VKHnlw074ZiFRZ46K3sRfFXvati+mSY= X-Google-Smtp-Source: ABdhPJyaN7fc9/CSJSmaOHmemgXpoKAS7zXo0q5n3XKs9bCKnuEWIpohL8ewjhfb0m8Q/nLpNiW29A== X-Received: by 2002:adf:bb0a:: with SMTP id r10mr15570638wrg.23.1633369664651; Mon, 04 Oct 2021 10:47:44 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id a63sm16200343wme.18.2021.10.04.10.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 10:47:44 -0700 (PDT) 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:216379 Archived-At: >>>>> On Mon, 27 Sep 2021 19:45:22 +0200, Robert Pluim s= aid: >>>>> On Mon, 27 Sep 2021 18:47:47 +0200, Robert Pluim s= aid: Robert> I=CA=BCve resurrected this patch, it seems to be working nicely= . Adding a Robert> lisp-level control variable seems more trouble than it=CA=BCs w= orth, I Robert> think the risk of breaking stuff on all platforms is higher than Robert> that of breaking stuff on Windows. Robert> Are we too late for emacs-28? Robert> Although I=CA=BCve broken TLS connections in the process (but n= ot http), so Robert> maybe we=CA=BCre too late. I did some more debugging on this. What's happening is that in 'wait_reading_process_output', when calling gnutls_try_handshake, we=CA=BCre 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. With the original code, we=CA=BCre calling gnutls_try_handshake perhaps 2 or 3 times, so I don=CA= =BCt understand why the new code behaves so differently (and this definitely won't make emacs-28). Interestingly: only 'M-x eww RET https://www.gnu.org' causes this. 'M-x eww RET https://www.google.com' works fine with both implementations. Robert --=20