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: Wed, 21 Jul 2021 17:53:00 -0400 Message-ID: <87im13xrk3.fsf@hm.sivalik.com> References: <87mtqfzpbl.fsf@hm.sivalik.com> <83mtqf4gab.fsf@gnu.org> <87k0ljnyjj.fsf@gnus.org> Reply-To: Rajeev N Mime-Version: 1.0 Content-Type: text/html Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="684"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 49682@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 21 23:56:23 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 1m6KCU-000AXg-VH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 23:56:22 +0200 Original-Received: from localhost ([::1]:46112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6KCU-0000Hm-0C for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 17:56:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6KCA-0000FW-FO for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2021 17:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6KCA-0000ve-7U for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2021 17:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6KCA-0003om-7U for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2021 17:56:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87mtqfzpbl.fsf@hm.sivalik.com> Resent-From: Rajeev N Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2021 21:56: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.162690451714626 (code B ref 49682); Wed, 21 Jul 2021 21:56:02 +0000 Original-Received: (at 49682) by debbugs.gnu.org; 21 Jul 2021 21:55:17 +0000 Original-Received: from localhost ([127.0.0.1]:38847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6KBR-0003nq-B7 for submit@debbugs.gnu.org; Wed, 21 Jul 2021 17:55:17 -0400 Original-Received: from vr0.sivalik.com ([104.238.130.12]:41940 helo=smtp.sivalik.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6KBQ-0003nb-08 for 49682@debbugs.gnu.org; Wed, 21 Jul 2021 17:55:16 -0400 Original-Received: from hp (pool-96-242-220-52.nwrknj.fios.verizon.net [96.242.220.52]) (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 9E4495FD1B; Wed, 21 Jul 2021 17:55:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sivalik.com; s=svlk; t=1626904510; bh=WXpwlSHkkQXybjJxkRFiq5l0wxKdCiEpv+iMzAYp3DY=; h=From:To:Cc:Subject:References:Date:From; b=WaDqm4qAdz4tQZMhkFx4uQSGRXcxQWCYEQ0C+7r37tHewn5vOxLfDCAFLVBSgF4je Q34A30RCFLrAvmvPm7e2zFXdHOOssWK9nAPZuX/Ni/+yKiPHm3lKiR3hJAhoPHWDwj mT9lXy9pkRUslrRsloxm9TSpCs6sx1lxRD060jt8= X-No-Archive: yes 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-04 Xref: news.gmane.io gmane.emacs.bugs:210478 Archived-At:

There is a bug but I am unable to pin-point where. All I could narrow it down to is that smtpmail open-network-stream hangs when it is invoked from within accept-process-output with timeout of 1 secs of url-retrieve.

I found a workaround for my needs by using smtpmail-queue-mail.

On Wed, 21 Jul 2021 at 11:32 pm +0200, Lars Ingebrigtsen wrote:

Eli Zaretskii <eliz@gnu.org> writes:

>> (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" >> #'ignore) (diary-mail-entries)) > > Don't do that, because it will hurt. Mixing timers with subprocesses > is asking for trouble.

That's not my experience, really – url-queue.el is based around firing off `url-retrieve' from timers, and I've never seen any problems.