From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#40665: 28.0.50; tls hang on local ssl Date: Fri, 24 Apr 2020 16:29:38 +0200 Message-ID: References: <86wo6fo78r.fsf@mail.3qin.us> <86blnnebh3.fsf@mail.3qin.us> <86zhb5hecx.fsf@mail.3qin.us> <86eeshpqdb.fsf@mail.3qin.us> <86zhb5q7sw.fsf@mail.3qin.us> <86y2qorj76.fsf@mail.3qin.us> <86368w1tge.fsf@mail.3qin.us> <864ktcfpm5.fsf@mail.3qin.us> <86368wfp6d.fsf@mail.3qin.us> <86y2qniu5m.fsf@mail.3qin.us> <86wo67im9w.fsf@mail.3qin.us> <86y2qnaqnv.fsf@mail.3qin.us> <86wo65arnu.fsf@mail.3qin.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="65790"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40665@debbugs.gnu.org To: Derek Zhou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 24 16:30:38 2020 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 1jRzLi-000H1e-EZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Apr 2020 16:30:38 +0200 Original-Received: from localhost ([::1]:39902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRzLh-0001vg-FW for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Apr 2020 10:30:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRzL9-0001Mt-Ez for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2020 10:30:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRzL8-0005gX-Vg for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2020 10:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRzL8-0005fm-If for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2020 10:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRzL8-0002ND-9u for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2020 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Apr 2020 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40665 X-GNU-PR-Package: emacs Original-Received: via spool by 40665-submit@debbugs.gnu.org id=B40665.15877385889082 (code B ref 40665); Fri, 24 Apr 2020 14:30:02 +0000 Original-Received: (at 40665) by debbugs.gnu.org; 24 Apr 2020 14:29:48 +0000 Original-Received: from localhost ([127.0.0.1]:57699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRzKu-0002MQ-Ek for submit@debbugs.gnu.org; Fri, 24 Apr 2020 10:29:48 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:43140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRzKs-0002MD-2p for 40665@debbugs.gnu.org; Fri, 24 Apr 2020 10:29:47 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id i10so11083689wrv.10 for <40665@debbugs.gnu.org>; Fri, 24 Apr 2020 07:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=4EhjODWtyVl2NBinXgE/EeYd07YOg8eDWANB10BBFu0=; b=LnxSVFHcg24XOrtLgg66Ibm6FBRRct1kt7ojXIw2IvK/iXrJdb85UrGdqD1REF3PWo FshDkKo9l1emtUJpX9kTzwL+pENRXz5GcbmErS0zyvrWSIS9o6c+oaa0GcoFtz+s/buk TYPQne10iVE/j5c6UyqJyr+8e/AxMs0LqSz9T67FOyGa0ZUO2v7NxEVNve6NoEMmb4U5 Zp7Yic2qpvi9/rQObLbtjZsVJ04db8ycMlAXJ7NfuNW/Rs+XQSm4SWyQVgICwOYTKh5O abwYVhcqzloCrTM6fYCqpC19fPWxhJ58CTkir4PeFiNh7x+zGnjDiXxWWOPcqQaaPXja ZMGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=4EhjODWtyVl2NBinXgE/EeYd07YOg8eDWANB10BBFu0=; b=Uzf/lywEq1ld9Oqa7sEUnagItVhI/efDrtmwG83J80Z7OaFjjSv1wIZ2zkJcSF1hUO ya+F/3nL8Q2qsjH6vnBwI1lsl2KbGmTPqZca3Ypxx79KLoHAqyJE7YGMoz0OS+O7T73v 6sTOFIzBGkueeWwZsJZmQDWnRihVuGN/SxKvCOcXK2d58/R3jKK8XSggx8LNDtvM76zz AvRYrmQn3mFCWXfBP+V06H7kwIC4uV1XoUuZcvXG8YojJODbsfHCwTVZPl+UICDOar1a UcTYHfZZw6WYO0Qm63WSWfzPMkGrbgHVUsS0zWAHlbOsaoCUqnyibHe7CRvEPKXraWy9 b0Eg== X-Gm-Message-State: AGi0PubL3uOBp85QYPDSJmwKm8f2SgbeCnkwP9Mv0K9HnYOXXcWrEvI5 kjSVqUENR4rf9lHA3hcFnHL7asqaFlA= X-Google-Smtp-Source: APiQypIhH1ELk6wkBlC6Bs5OcVCVqHAFfb3or0C/Tn9/SJpzlhha4/W/umCjVre+FAxceF69WvUeOQ== X-Received: by 2002:a5d:4645:: with SMTP id j5mr11111285wrs.282.1587738579596; Fri, 24 Apr 2020 07:29:39 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:bd9a:ec93:82f0:3a9a]) by smtp.gmail.com with ESMTPSA id g74sm3103059wme.44.2020.04.24.07.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 07:29:39 -0700 (PDT) In-Reply-To: <86wo65arnu.fsf@mail.3qin.us> (Derek Zhou's message of "Fri, 24 Apr 2020 14:23:50 +0000 (UTC)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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:178926 Archived-At: >>>>> On Fri, 24 Apr 2020 14:23:50 +0000 (UTC), Derek Zhou = said: Derek> Derek Zhou writes: >> Robert Pluim writes: >>=20 >>> OK, that does make sense, and might even be more correct, but it=CA= =BCs a >>> bigger change. You'll need more than just me to agree with it. >>>=20 >> Patch reworked: >>=20 >> * 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, merge the gnutls buffer status into the select >> returns >>=20 >> The patch is not much longer than before, still a net reduction of c= ode >> lines. I've done some light testing and haven't found any problem.=20 Derek> Robert, Derek> did you get a chance to read and test this patch? Not yet, unfortunately. Hopefully this weekend sometime. Robert