From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#62990: 30.0.50; UDP server closes connection upon receiving an empty packet Date: Wed, 26 Apr 2023 16:27:48 +0200 Message-ID: <87bkjasopn.fsf@gmail.com> References: <87wn21br45.fsf@gmail.com> <87ttx49yg0.fsf@gmail.com> <87354nt37h.fsf@gmail.com> <83v8hjszp3.fsf@gnu.org> <87ttx3rkwm.fsf@gmail.com> <83pm7rszbc.fsf@gnu.org> <87o7nasw4a.fsf@gmail.com> <83jzxyu90c.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11037"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62990@debbugs.gnu.org, mail@vasilij.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 26 16:28:22 2023 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 1prg86-0002cw-Dc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Apr 2023 16:28:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prg7p-00033J-6j; Wed, 26 Apr 2023 10:28:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prg7n-00032h-CB for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 10:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1prg7n-0000Cu-3t for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 10:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1prg7m-0005Mo-Hm for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 10:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Apr 2023 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62990 X-GNU-PR-Package: emacs Original-Received: via spool by 62990-submit@debbugs.gnu.org id=B62990.168251927720620 (code B ref 62990); Wed, 26 Apr 2023 14:28:02 +0000 Original-Received: (at 62990) by debbugs.gnu.org; 26 Apr 2023 14:27:57 +0000 Original-Received: from localhost ([127.0.0.1]:56753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prg7h-0005MW-91 for submit@debbugs.gnu.org; Wed, 26 Apr 2023 10:27:57 -0400 Original-Received: from mail-wm1-f48.google.com ([209.85.128.48]:50274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prg7f-0005MI-RW for 62990@debbugs.gnu.org; Wed, 26 Apr 2023 10:27:56 -0400 Original-Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-3f18dacd392so44474755e9.0 for <62990@debbugs.gnu.org>; Wed, 26 Apr 2023 07:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682519270; x=1685111270; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=GwuhaNkQKeSLGeyv0OqWO4el3G+NG/N4dUh4FZBisfQ=; b=AfKF5vrXUiejnKlabDB0CRz5KiLckq0aGvi3aJI2CerTq0R444LeTEA/grEQXh+hJM O5Kldsiv3Lbu8YgpCOcLfxLuC8mMZ3N5zwI60BoFUSfahqjyioMlG9TD3iIvds8SHzi+ 3tfDohUuU8ybrYn3Amr5jgb5zU2IxqvhghbWApIzlWxnzhCs5rx2Zvuw8odvQcY0Juc7 VxmQkKh0piXNaT3RQIrkD3m05Dw5npuQupJTbGnWYo0rKupyWIh2yxTcmiPFvW66jRL7 sQcVl9m8LKnTU2hbp90FUvOsHiFL6IGN2f04VNTM31B2Xe8xjzju1vs87zl9zsHlhKj+ L6Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682519270; x=1685111270; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GwuhaNkQKeSLGeyv0OqWO4el3G+NG/N4dUh4FZBisfQ=; b=gKYvGG/8C8/mcJbmmgs8E14yV2huXiY/jPJ3hSARL3dbIc1kIsTaY+p/YJMX+ulq/A 6HYh7xCnQj4AXOgCVDaJKZvsRmiCrdgVzsSerfqQGBV/3foqZNfTo8bThUVCH6HP6w8E AdnQN8SNL8uRrOnNI0QuB9ZjC1CoWIHUM45tfl36HjbGs2VSpLwpYIxf1WSOO6mBJn2c oFXt08HufhPYRzCklFABX3ElgDNkjPZT8d93N9T69ugodCliA9joKQD627ZXQU1s6moI Q7WUnYwlXqcInDAXBx+K9TR8aFCldYcRUZA4cy9Wp/7sc1Xi9GvqOSD44PjaOPtam5xU eHYQ== X-Gm-Message-State: AAQBX9cUvnOahOoFV3A5HV+fvKMZrMvQgu0mgUAGYd9DZs3fxQV2PsbV vdzNC3lw2m5slIoW2SfUIRs= X-Google-Smtp-Source: AKy350YQCQMeApW3RKhbaMCfNiiPYZ6mxB+5VCajWTGReC6n9oULoNPBgY1/z61IwwkdQo7T1INxfA== X-Received: by 2002:a1c:f703:0:b0:3ef:6b97:f0c3 with SMTP id v3-20020a1cf703000000b003ef6b97f0c3mr13946557wmh.15.1682519269838; Wed, 26 Apr 2023 07:27:49 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id n17-20020a05600c3b9100b003ee9c8cc631sm21780149wms.23.2023.04.26.07.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 07:27:49 -0700 (PDT) In-Reply-To: <83jzxyu90c.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Apr 2023 15:24:03 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260682 Archived-At: >>>>> On Wed, 26 Apr 2023 15:24:03 +0300, Eli Zaretskii said: >>=20 >> 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 r= ely Eli> on the semi-buggy behavior, whereby empty packets aren't sent? I can=CA=BCt conceive of it. If it ever does happen the fix is easy: check the length of the message before sending it. >>=20 >> 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 --=20