GNU bug report logs - #19729
25.0.50; url-retrieve-synchronously never returns when there's no response from the server

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Thu, 29 Jan 2015 21:12:02 UTC

Severity: normal

Merged with 20207

Found in version 25.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19729 in the body.
You can then email your comments to 19729 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Thu, 29 Jan 2015 21:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dmitry Gutov <dgutov <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 29 Jan 2015 21:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50;
 url-retrieve-synchronously never returns when there's no response
 from the server
Date: Thu, 29 Jan 2015 23:11:16 +0200
Evaluate

(url-retrieve-synchronously "http://localhost:3333/foo")

As long as there's nothing running on that port, the function call
should return quickly, but it never completes.

On emacs-24, it works as expected.

In GNU Emacs 25.0.50.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
 of 2015-01-29 on axl
Repository revision: 1dc1959ebf50401c69adeb6d182950b59835f94d
Windowing system distributor `The X.Org Foundation', version 11.0.11601901
System Description:	Ubuntu 14.10




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Thu, 29 Jan 2015 22:24:02 GMT) Full text and rfc822 format available.

Message #8 received at 19729 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 19729 <at> debbugs.gnu.org
Subject: Re: bug#19729: 25.0.50;
 url-retrieve-synchronously never returns when there's no response
 from the server
Date: Thu, 29 Jan 2015 23:23:25 +0100
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> Evaluate
>
> (url-retrieve-synchronously "http://localhost:3333/foo")
>
> As long as there's nothing running on that port, the function call
> should return quickly, but it never completes.

If nothing answers then it will wait until TCP timeout.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Thu, 29 Jan 2015 22:25:01 GMT) Full text and rfc822 format available.

Message #11 received at 19729 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 19729 <at> debbugs.gnu.org
Subject: Re: bug#19729: 25.0.50; url-retrieve-synchronously never
 returns when there's no response from the server
Date: Fri, 30 Jan 2015 00:24:42 +0200
On 01/30/2015 12:23 AM, Andreas Schwab wrote:
> If nothing answers then it will wait until TCP timeout.

Does "never completes" sound like honouring TCP timeout to you?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Thu, 29 Jan 2015 22:27:02 GMT) Full text and rfc822 format available.

Message #14 received at 19729 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 19729 <at> debbugs.gnu.org
Subject: Re: bug#19729: 25.0.50; url-retrieve-synchronously never
 returns when there's no response from the server
Date: Fri, 30 Jan 2015 00:25:59 +0200
On 01/30/2015 12:23 AM, Andreas Schwab wrote:

> If nothing answers then it will wait until TCP timeout.

But actually, the port is closed, so it should finish immediately with 
"connection refused".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Fri, 30 Jan 2015 10:23:01 GMT) Full text and rfc822 format available.

Message #17 received at 19729 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 19729 <at> debbugs.gnu.org
Subject: Re: bug#19729: 25.0.50;
 url-retrieve-synchronously never returns when there's no response
 from the server
Date: Fri, 30 Jan 2015 11:22:32 +0100
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> On 01/30/2015 12:23 AM, Andreas Schwab wrote:
>
>> If nothing answers then it will wait until TCP timeout.
>
> But actually, the port is closed, so it should finish immediately with
> "connection refused".

Depends on the firewall settings.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Fri, 30 Jan 2015 10:41:02 GMT) Full text and rfc822 format available.

Message #20 received at 19729 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 19729 <at> debbugs.gnu.org
Subject: Re: bug#19729: 25.0.50;
 url-retrieve-synchronously never returns when there's no response
 from the server
Date: Fri, 30 Jan 2015 11:39:53 +0100
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> On 01/30/2015 12:23 AM, Andreas Schwab wrote:
>> If nothing answers then it will wait until TCP timeout.
>
> Does "never completes" sound like honouring TCP timeout to you?

You didn't say how long "never" is.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Fri, 30 Jan 2015 10:42:01 GMT) Full text and rfc822 format available.

Message #23 received at 19729 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 19729 <at> debbugs.gnu.org
Subject: Re: bug#19729: 25.0.50; url-retrieve-synchronously never
 returns when there's no response from the server
Date: Fri, 30 Jan 2015 12:41:42 +0200
On 01/30/2015 12:22 PM, Andreas Schwab wrote:
> Depends on the firewall settings.

Nothing above the default Ubuntu settings. Like I said, emacs-24 works 
like expected.

Have you tried my example? Can you see the difference in behavior?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Fri, 30 Jan 2015 10:44:01 GMT) Full text and rfc822 format available.

Message #26 received at 19729 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 19729 <at> debbugs.gnu.org
Subject: Re: bug#19729: 25.0.50; url-retrieve-synchronously never
 returns when there's no response from the server
Date: Fri, 30 Jan 2015 12:43:32 +0200
On 01/30/2015 12:39 PM, Andreas Schwab wrote:
> You didn't say how long "never" is.

Never is never. How long would you have me wait?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19729; Package emacs. (Fri, 30 Jan 2015 14:16:02 GMT) Full text and rfc822 format available.

Message #29 received at 19729 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 19729 <at> debbugs.gnu.org
Subject: Re: bug#19729: 25.0.50;
 url-retrieve-synchronously never returns when there's no response
 from the server
Date: Fri, 30 Jan 2015 15:15:11 +0100
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> On 01/30/2015 12:39 PM, Andreas Schwab wrote:
>> You didn't say how long "never" is.
>
> Never is never.

Never hasn't ended yet.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Merged 19729 20207. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 18 Apr 2015 16:30:05 GMT) Full text and rfc822 format available.

Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sun, 26 Apr 2015 15:24:02 GMT) Full text and rfc822 format available.

Notification sent to Dmitry Gutov <dgutov <at> yandex.ru>:
bug acknowledged by developer. (Sun, 26 Apr 2015 15:24:02 GMT) Full text and rfc822 format available.

Message #36 received at 19729-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: eggert <at> cs.ucla.edu, 19729-done <at> debbugs.gnu.org
Subject: Re: bug#19860: 25.0.50; One url-retrieve-synchronously call
 running concurrently with another can freeze it
Date: Sun, 26 Apr 2015 18:23:37 +0300
On 04/26/2015 06:01 PM, Eli Zaretskii wrote:

> It looks like this also fixed bug#20207 and #19729, so I think we can
> close them.  Dmitry, can you verify that they are solved for you as
> well?

Indeed, they are. Thanks for the reminder.




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sun, 26 Apr 2015 15:24:02 GMT) Full text and rfc822 format available.

Notification sent to Eli Zaretskii <eliz <at> gnu.org>:
bug acknowledged by developer. (Sun, 26 Apr 2015 15:24:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 25 May 2015 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.