From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#32658: gnutls + non-blocking url-retrieve Date: Thu, 16 May 2019 09:14:56 -0400 Message-ID: <87mujmee27.fsf@gmail.com> References: <861sa5zmpt.fsf@DESKTOP-DQBDJ0U.i-did-not-set--mail-host-address--so-tickle-me> <86tvm6smax.fsf@DESKTOP-DQBDJ0U.i-did-not-set--mail-host-address--so-tickle-me> <83efda431j.fsf@gnu.org> <86d0srp14s.fsf@DESKTOP-DQBDJ0U.i-did-not-set--mail-host-address--so-tickle-me> <864ldx6fga.fsf@DESKTOP-DQBDJ0U.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="209504"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 32658@debbugs.gnu.org To: thomas@m3y3r.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 16 15:23:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRGLy-000sOK-Pp for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2019 15:23:22 +0200 Original-Received: from localhost ([127.0.0.1]:57084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRGLx-00022o-PH for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2019 09:23:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRGEv-00069u-0c for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 09:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRGEs-0004fs-08 for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 09:16:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRGEr-0004fh-U7 for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 09:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRGEr-00026m-OB for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 09:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 May 2019 13:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32658 X-GNU-PR-Package: emacs Original-Received: via spool by 32658-submit@debbugs.gnu.org id=B32658.15580125098003 (code B ref 32658); Thu, 16 May 2019 13:16:01 +0000 Original-Received: (at 32658) by debbugs.gnu.org; 16 May 2019 13:15:09 +0000 Original-Received: from localhost ([127.0.0.1]:54683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRGE0-000250-T0 for submit@debbugs.gnu.org; Thu, 16 May 2019 09:15:09 -0400 Original-Received: from mail-io1-f42.google.com ([209.85.166.42]:39920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRGDw-00023o-Or for 32658@debbugs.gnu.org; Thu, 16 May 2019 09:15:05 -0400 Original-Received: by mail-io1-f42.google.com with SMTP id m7so2527332ioa.6 for <32658@debbugs.gnu.org>; Thu, 16 May 2019 06:15:04 -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 :user-agent:mime-version; bh=Z6hB9c1mXrC4vC/5iFXNllEYj16hrYn30cLINq7fo+Q=; b=WHBsex6BqS2UwPH3cfQF9UeBcBG5c3k15gHADBoGfX+EkfOZyLStwWmFszyONTSdXQ TF4aisHhxPQ8nU42AgaQ+hV6zB6MIJqQYqqeEunfRxOAAxx1DqtC0TBXJYPQ9cigCzAL AMCnUGSNIB3fJI4pQlSEHq+jSrs+SEPZdBGEitJyoI4uSki6JMvPNpjAkeTu7VZWhDkK 1j3PEYqwQ3cnhrHhC4bVv8euDPuf4TYC5taJRR0C5iKEj7vwV14rZG9RTNA3BwXPWC2U bEmaIffl1hMt09Pu0CoAbbymYsuubbimGfFvGQ14lljSr0x/v36YlkOghkdjodIZ142Y eFVA== 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:user-agent:mime-version; bh=Z6hB9c1mXrC4vC/5iFXNllEYj16hrYn30cLINq7fo+Q=; b=Yis7uvYspTe/dr5WnYpgoi6MBrXyh8FYe7jE7QuMf5rFTnJ2bZ5w+xTTycIc1LQ5cZ uawnXGqSkfbmOs601/NYv549Y8IFWQhxpivIt4WYTCJTbyEJZuY30a+AJvGlMCissld/ luC5vVOZN4ZjWCY5LycEGbKc23ERUxfHjRhOba4mqVyQss5KY8nznrAkA12Li042YLs6 NYdWDG6p21grYChVp8k7YcxdtGRAFK2zPKUf5Ih3k3CzWluYzOeaOk5dWyzaBj2w52J9 zOqIFoVuVgLAONOK934Nh1sW16gIdwCoXVMD1P2obGcN8xmppkeYhQFV+0OeWtKnrNvL t6PQ== X-Gm-Message-State: APjAAAUUKscszyO23RWRIgBoaYtKECCdqrsnK1SxlkZRn9UfrC21W4z9 +K2rseVgFUVQQ1wk4KcFwMVi+mtT X-Google-Smtp-Source: APXvYqxWUY1U6ERAyHxyEiQ2243u5BoKYpHTiiFDfu7GQf7fpmlNF1pqSoE2ZzSx6g90h0te4ylqyQ== X-Received: by 2002:a6b:b654:: with SMTP id g81mr12869435iof.34.1558012497591; Thu, 16 May 2019 06:14:57 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id c3sm1571742iob.80.2019.05.16.06.14.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 May 2019 06:14:56 -0700 (PDT) In-Reply-To: <864ldx6fga.fsf@DESKTOP-DQBDJ0U.i-did-not-set--mail-host-address--so-tickle-me> (thomas@m3y3r.de's message of "Sun, 07 Oct 2018 15:42:29 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159385 Archived-At: thomas@m3y3r.de writes: >>>> From: thomas@m3y3r.de >>>> >>>> 1.) I needed to revert to gnutls 3.5.19, the mingw64 build from the >>>> gitlab ci build seems to have a working gnutls-cli tools on windows 10. >>>> the gitlab builds for 3.6.3 and 3.6.4 seems to have another bug >>>> (error code -53) in the gnutls-cli command. >>>> >>>> so only gnutls 3.5.19 have a working gnutls-cli. i installed this version in emacs 26.1 > okay, some more infos. > > I was able to bootstrap the emacs compile with mingw64. > > while I was trying to debug this problem with fprintf, eww suddenly > started to work!! > > It started to work after I did insert an fprintf after the > gnutls_try_handshake call in process.c !! > > what is going on here? It sounds like this might be Bug#34341, the problem was emacs_gnutls_read didn't handle GNUTLS_E_AGAIN properly. The symptoms only seem to occur with servers supporting TLS1.3 and more recent gnutls versions (I thought it was 3.6+, but I haven't pinned the precise version numbers, so maybe 3.5.19 has it too, or maybe it's a bit different on Windows). And some people reported that increasing gnutls-log-level made it go away, so it's certainly timing dependent. So can you check if the problem is fixed in the latest emacs-26 or master branch? https://debbugs.gnu.org/34341