From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs Date: Mon, 26 Jul 2021 23:22:57 +0300 Message-ID: <27f2f996-5cb2-acf2-4f94-b964a7f1d32a@yandex.ru> References: <87mtqfzpbl.fsf@hm.sivalik.com> <87k0ljpulj.fsf@gnus.org> <87czrbve2s.fsf@hm.sivalik.com> <87sg07od34.fsf@gnus.org> <874kclkls1.fsf@hm.sivalik.com> <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> <87y29s7svx.fsf@hm.sivalik.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12882"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org To: Rajeev N Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 26 22:24:10 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 1m878z-00039z-Ov for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 22:24:09 +0200 Original-Received: from localhost ([::1]:46498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m878y-0006kb-NO for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 16:24:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m878s-0006kE-Qz for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 16:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m878s-000060-Ey for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 16:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m878r-0007NG-V8 for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 16:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jul 2021 20:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49682 X-GNU-PR-Package: emacs Original-Received: via spool by 49682-submit@debbugs.gnu.org id=B49682.162733098828286 (code B ref 49682); Mon, 26 Jul 2021 20:24:01 +0000 Original-Received: (at 49682) by debbugs.gnu.org; 26 Jul 2021 20:23:08 +0000 Original-Received: from localhost ([127.0.0.1]:51583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8780-0007M9-1A for submit@debbugs.gnu.org; Mon, 26 Jul 2021 16:23:08 -0400 Original-Received: from mail-ej1-f47.google.com ([209.85.218.47]:40611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m877x-0007LT-PQ for 49682@debbugs.gnu.org; Mon, 26 Jul 2021 16:23:06 -0400 Original-Received: by mail-ej1-f47.google.com with SMTP id oz16so9868206ejc.7 for <49682@debbugs.gnu.org>; Mon, 26 Jul 2021 13:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9ihoXq3xIymE2QoQfk8diEuJn3bZ6GL+N14PHwHUXE8=; b=PM0ZjOaWM6qHs5qtIrbRwuFDVY5s8xX7dRMXWv7OwergVHd4SdRLrXCYwD7XPRByEs V7Spj8Z6tFVlK9nY/eAV1D37xh+q93hXmJ1GORtz872tajEJWJz0/x6YdeCSGY89+AKb lO3Wc2ATr9qtopqQ/lbeU3qP0cmLei7r/hGDQQpWL6Oy3CJPCLTjuOm6L7hyP5dMZh6U xetfiP/WKr+IXtoZLIVxJshndPD1ZjSQte1SzPY2Yh9BzFqFXTxXvkU8Aoawit/Uyw+I VvR4rvYFEbfeR1b5tIfVDaSoJPgsV/9agXM1AffZSiv8q5sEUj1l8Z16JO55AC2PHb+B L0pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9ihoXq3xIymE2QoQfk8diEuJn3bZ6GL+N14PHwHUXE8=; b=fZEVMiPI3Td9tp0Q5rKJ3RJEqUOcu7d9veDjqe/8RD691udOo8V6PBKtfn5R0a7AK5 xJAMspaUn7+zICCtI9PUlBdLZ1DQ1FE2n7sZGQI63W46JSJXkTmAtcpIrvKPr6udiBZG 9gYYUJ+57l0sRO9jvVyhJXvPGZiZ86YZfCjKNzAbVOo9buBO8X4Ne6smkneY3WNGQpim SWQUDWEai0LcAlMO5Jp7TfsYQA3ZLC19PS7T8DapIX9qEQPqeDIo6ANgfaqUsetryvgI UKQgqp6ROD0Y6nP3m7PPBkSdxK9JYiywGaIV1EDpIAtIWMp2RPkklVdbjV9Cw5gn26nA 7CoA== X-Gm-Message-State: AOAM531432IF0aZr3pntW/gYnhi7EhCOkIGUlrR27mQReelLD1MlKcKB ySFNxK7B+czV1UyIchjeN8qmcHXOFs4= X-Google-Smtp-Source: ABdhPJzpIboqixJLxutdFjp6iS42y9vjPlPXkz37q4S5VqbBrmAwlglubLyl1V9t4z+KUI0JWl0Bvw== X-Received: by 2002:a17:906:fb11:: with SMTP id lz17mr1042198ejb.336.1627330979952; Mon, 26 Jul 2021 13:22:59 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id i6sm205304ejd.57.2021.07.26.13.22.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 13:22:59 -0700 (PDT) In-Reply-To: <87y29s7svx.fsf@hm.sivalik.com> Content-Language: en-US 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:210765 Archived-At: On 26.07.2021 22:54, Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > For me the following also hangs emacs. The problem seems to me that (accept-process-output stream 0.05) in network-stream-get-response does not return even though it has a timeout of .05. > > (let () > (run-with-timer 0 nil #'url-retrieve"https://www.gnu.org/" #'ignore) > (make-process :name "echo" :command '("echo") > :sentinel (lambda (_p _e) > (with-current-buffer (generate-new-buffer " *debug") > (run-with-timer 0 nil #'open-network-stream > "testing" (current-buffer) "smtp.gmail.com" 587 > :type 'starttls > :return-list t > :warn-unless-encrypted t > :capability-command "EHLOwww.gnu.org\r\n" > :end-of-command "^[0-9]+ .*\r\n" > :success "^2.*\n" > :always-query-capabilities t > :starttls-function > (lambda (capabilities) > (and (string-match "[ -]STARTTLS" capabilities) > "STARTTLS\r\n")) > :client-certificate t > :use-starttls-if-possible t))))) Hmm, that doesn't freeze for me. Even though if I follow 'C-x C-e' with 'C-p' right away, it will wait for like 0.5s before moving the cursor to the previous line. I have tried it in a number of versions of Emacs, so far no luck. Any chance you're not starting with 'emacs -Q' and your personal config affects this?