GNU bug report logs - #62990
30.0.50; UDP server closes connection upon receiving an empty packet

Previous Next

Package: emacs;

Reported by: Vasilij Schneidermann <mail <at> vasilij.de>

Date: Fri, 21 Apr 2023 10:38:01 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Vasilij Schneidermann <mail <at> vasilij.de>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 62990 <at> debbugs.gnu.org
Subject: bug#62990: 30.0.50; UDP server closes connection upon receiving an empty packet
Date: Wed, 26 Apr 2023 12:56:39 +0200
[Message part 1 (text/plain, inline)]
> Yes, although in a different place than I expected. Patch below. The
> end result is to ignore the zero length message, getting it delivered
> to the process would involve considerably bigger changes.

Thank you. Yes, that is the case, the network process is no longer shut
down, but the 0-length message isn't picked up. It prints the following:

    Received string (5): "hello"
    Received string (5): "world"

Rather than the expected:

    Received string (5): "hello"
    Received string (0): ""
    Received string (5): "world"

> I was hoping to avoid installing guile :-)

I figured Guile would be the safest option for the developers of GNU
software, rather than requiring Python, Ruby, ...

> The client works, but the server gets me this, which means Iʼm missing
> some bits somewhere:
>     [...]
>     ice-9/boot-9.scm:3300:6: In procedure resolve-interface:
>     no code for module (rnrs bytevectors gnu)

Hm, could be an addition specific to Guile 3. It can be worked around
probably by doing some less efficient string copying.

> Does guile deliver the empty message?

Yes it does.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year and 159 days ago.

Previous Next


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