From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rajeev N via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs Date: Mon, 26 Jul 2021 15:54:42 -0400 Message-ID: <87y29s7svx.fsf@hm.sivalik.com> 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> Reply-To: Rajeev N Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31455"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 49682@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 26 21:55:30 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 1m86hG-00080m-0b for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 21:55:30 +0200 Original-Received: from localhost ([::1]:42412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m86hE-0000VD-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 15:55:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m86go-0000UM-Qn for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 15:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m86go-0006Ak-Gi for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 15:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m86go-0006g9-Gx for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2021 15:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rajeev N Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jul 2021 19:55:02 +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.162732929325655 (code B ref 49682); Mon, 26 Jul 2021 19:55:02 +0000 Original-Received: (at 49682) by debbugs.gnu.org; 26 Jul 2021 19:54:53 +0000 Original-Received: from localhost ([127.0.0.1]:51558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m86gf-0006fj-0K for submit@debbugs.gnu.org; Mon, 26 Jul 2021 15:54:53 -0400 Original-Received: from vr0.sivalik.com ([104.238.130.12]:36600 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m86ga-0006fT-LU for 49682@debbugs.gnu.org; Mon, 26 Jul 2021 15:54:51 -0400 Original-Received: from hp (pool-96-242-220-29.nwrknj.fios.verizon.net [96.242.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rajeev@sivalik.com) by smtp.sivalik.com (Postfix) with ESMTPSA id E8D0862046; Mon, 26 Jul 2021 15:54:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1627329283; bh=DwrVdfHIudpW6F2h3zIoHen1QC9vEFHw1B9yN22HK1M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VVy7+n/rKQRV0tlduwrhLE7eJL16VDdrZMYJ3lC8FgvemNLC3ghL//lhwxi71dquL EflJFFzkY8M14JchPO4FBJYtm/T9IRxzbDAR2wmL40a8ZqNXO/SS9+3zGtaPU0krL2 KUU7w6jmlXK39+MdXvJRDrSeAi5tf+EYsLT+a79s= X-No-Archive: yes In-Reply-To: <895868e4-4f20-ba77-f4e5-7ea2715d18f0@yandex.ru> (Dmitry Gutov's message of "Mon, 26 Jul 2021 21:58:39 +0300") Content-Disposition: inline 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" X-Gmane-Expiry: 2021-08-09 Xref: news.gmane.io gmane.emacs.bugs:210762 Archived-At: 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 "EHLO www.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))))) On Mon, 26 Jul 2021 at 9:58 pm +0300, Dmitry Gutov wrote: #+begin_quote On 23.07.2021 20:00, Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > (let () > (run-with-timer 0 nil #'url-retrieve"https://www.gnu.org/" #'ignore) > (make-process :name "echo" :command '("echo") > :sentinel (lambda (_p _e) (run-with-timer 0 nil #'diary-mail-entries)))) Any chance you have an example of the problem that doesn't require SMTP/Mail/Gnus to be configured in Emacs? #+end_quote