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: Robert Pluim <rpluim <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 62990 <at> debbugs.gnu.org, mail <at> vasilij.de
Subject: bug#62990: 30.0.50; UDP server closes connection upon receiving an empty packet
Date: Wed, 26 Apr 2023 16:27:48 +0200
>>>>> On Wed, 26 Apr 2023 15:24:03 +0300, Eli Zaretskii <eliz <at> gnu.org> said:
    >> 
    >> I guess we could, but if the application asks us to send an empty
    >> packet we should do it.

    Eli> I didn't say that the default behavior should be that, I just asked
    Eli> whether it is conceivable that someone, somewhere could actually rely
    Eli> on the semi-buggy behavior, whereby empty packets aren't sent?

I canʼt conceive of it. If it ever does happen the fix is easy: check
the length of the message before sending it.

    >> 
    >> ie the UDP process is still running and can still receive messages

    Eli> And no one could ever expect that?  IOW, is this behavior obviously
    Eli> wrong?

Yes. The other end has sent a valid UDP packet, and we react by
closing the connection.

Robert
-- 




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

Previous Next


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