GNU bug report logs - #9586
The Windows port does not support datagram sockets

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Fri, 23 Sep 2011 12:15:02 UTC

Severity: wishlist

Tags: patch

Merged with 45821

Found in version 28.0.50

To reply to this bug, email your comments to 9586 AT debbugs.gnu.org.

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#9586; Package emacs. (Fri, 23 Sep 2011 12:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juanma Barranquero <lekktu <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 23 Sep 2011 12:15:02 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Bug-Gnu-Emacs <bug-gnu-emacs <at> gnu.org>
Subject: The Windows port does not support datagram sockets
Date: Fri, 23 Sep 2011 14:12:54 +0200
Package: emacs
Severity: wishlist

This is not new. Datagram sockets were unreliable on Windows and were
disabled in 2006, during the 22.1 pretest.

Kim: "Unfortunately, I just discovered (by reading the code) that
datagram support is severely broken on Windows -- it can send
datagrams, but not receive them reliably. So datagram support should
probably be disabled too."

Stefan: "I don't know of any elisp code that uses datagram sockets, so
it's not a big deal, is it?"

(To which I would add: well, I would've programmed an elisp RADIUS
server long ago if datagrams were available on Windows, but still...)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9586; Package emacs. (Fri, 23 Sep 2011 12:47:01 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 9586 <at> debbugs.gnu.org
Subject: Re: bug#9586: The Windows port does not support datagram sockets
Date: Fri, 23 Sep 2011 14:44:51 +0200
Juanma Barranquero <lekktu <at> gmail.com> writes:

> Stefan: "I don't know of any elisp code that uses datagram sockets, so
> it's not a big deal, is it?"

dns.el uses datagram sockets.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9586; Package emacs. (Fri, 23 Sep 2011 13:56:02 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 9586 <at> debbugs.gnu.org
Subject: Re: bug#9586: The Windows port does not support datagram sockets
Date: Fri, 23 Sep 2011 15:54:22 +0200
> dns.el uses datagram sockets.

I suppose it was added after Stefan's comment (in 2006).

    Juanma




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9586; Package emacs. (Tue, 01 Oct 2019 22:54:01 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 9586 <at> debbugs.gnu.org
Subject: Fwd: bug#9586: The Windows port does not support datagram sockets
Date: Wed, 2 Oct 2019 00:52:26 +0200
[Message part 1 (text/plain, inline)]
(Resending, there was a typo in the debbugs address)


>> dns.el uses datagram sockets.

> I suppose it was added after Stefan's comment (in 2006).

Well, in fact dns-query does not work on Windows because datagram
sockets are still unsupported.

M-x load-library dns <RET>

M-: (dns-make-network-process "8.8.8.8")

=> Unsupported connection type
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9586; Package emacs. (Wed, 02 Oct 2019 11:24:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 9586 <at> debbugs.gnu.org
Subject: Re: bug#9586: The Windows port does not support datagram sockets
Date: Wed, 02 Oct 2019 13:23:32 +0200
Juanma Barranquero <lekktu <at> gmail.com> writes:

>> dns.el uses datagram sockets.
>
> I suppose it was added after Stefan's comment (in 2006).

It was written in 2002, but perhaps it didn't land in Emacs until later.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9586; Package emacs. (Wed, 02 Oct 2019 14:20:02 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 9586 <at> debbugs.gnu.org
Subject: Re: bug#9586: Fwd: bug#9586: The Windows port does not support
 datagram sockets
Date: Wed, 02 Oct 2019 16:19:13 +0200
>>>>> On Wed, 2 Oct 2019 00:52:26 +0200, Juanma Barranquero <lekktu <at> gmail.com> said:

    Juanma> (Resending, there was a typo in the debbugs address)
    >>> dns.el uses datagram sockets.

    >> I suppose it was added after Stefan's comment (in 2006).

    Juanma> Well, in fact dns-query does not work on Windows because datagram
    Juanma> sockets are still unsupported.

    Juanma> M-x load-library dns <RET>

    Juanma> M-: (dns-make-network-process "8.8.8.8")

    Juanma> => Unsupported connection type

We now have the following, which will do DNS lookups, although it
doesnʼt let you specify the server.

    network-lookup-address-info is a built-in function in `C source code'.

    (network-lookup-address-info NAME &optional FAMILY)

    Look up ip address info of NAME.
    Optional parameter FAMILY controls whether to look up IPv4 or IPv6
    addresses.  The default of nil means both, symbol `ipv4' means IPv4
    only, symbol `ipv6' means IPv6 only.  Returns a list of addresses, or
    nil if none were found.  Each address is a vector of integers.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9586; Package emacs. (Wed, 02 Oct 2019 14:30:02 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 9586 <at> debbugs.gnu.org
Subject: Re: bug#9586: Fwd: bug#9586: The Windows port does not support
 datagram sockets
Date: Wed, 2 Oct 2019 16:28:27 +0200
[Message part 1 (text/plain, inline)]
On Wed, Oct 2, 2019 at 4:19 PM Robert Pluim <rpluim <at> gmail.com> wrote:

> We now have the following, which will do DNS lookups, although it
> doesnʼt let you specify the server.
>
>     network-lookup-address-info is a built-in function in `C source code'.
>
>     (network-lookup-address-info NAME &optional FAMILY)

Thanks, I didn't know that.

Anyway, this bug report wasn't really about dns.el, but about datagram
sockets not being implemented on the Windows port. The dns.el problem is
just fallout.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9586; Package emacs. (Wed, 02 Oct 2019 15:48:01 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 9586 <at> debbugs.gnu.org
Subject: Re: bug#9586: Fwd: bug#9586: The Windows port does not support
 datagram sockets
Date: Wed, 02 Oct 2019 17:47:47 +0200
>>>>> On Wed, 2 Oct 2019 16:28:27 +0200, Juanma Barranquero <lekktu <at> gmail.com> said:
    Juanma> Anyway, this bug report wasn't really about dns.el, but about datagram
    Juanma> sockets not being implemented on the Windows port. The dns.el problem is
    Juanma> just fallout.

True, but the question remains: what do you need datagram sockets for?

Robert




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9586; Package emacs. (Wed, 02 Oct 2019 16:08:01 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 9586 <at> debbugs.gnu.org
Subject: Re: bug#9586: Fwd: bug#9586: The Windows port does not support
 datagram sockets
Date: Wed, 2 Oct 2019 18:06:44 +0200
[Message part 1 (text/plain, inline)]
I don't need them for anything specific. It's just a capability that works
on GNU/Linux and not on Windows.

And that's why I updated this bug report, to mark that it wasn't obsolete.
[Message part 2 (text/html, inline)]

Forcibly Merged 9586 45821. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 07 Feb 2022 00:13:01 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 126 days ago.

Previous Next


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