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 13:47:49 +0200 Message-ID: <87o7nasw4a.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> 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="17068"; 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 13:48:17 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 1prddA-0004JU-Lw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Apr 2023 13:48:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prdd1-0003mL-68; Wed, 26 Apr 2023 07:48:07 -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 1prdcx-0003kN-VE for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 07:48:04 -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 1prdcx-0000QP-Kr for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 07:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1prdcw-0000CJ-NC for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 07:48: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 11:48: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.1682509681747 (code B ref 62990); Wed, 26 Apr 2023 11:48:02 +0000 Original-Received: (at 62990) by debbugs.gnu.org; 26 Apr 2023 11:48:01 +0000 Original-Received: from localhost ([127.0.0.1]:54433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prdcv-0000Bv-7j for submit@debbugs.gnu.org; Wed, 26 Apr 2023 07:48:01 -0400 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:55760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prdcr-0000Al-6z for 62990@debbugs.gnu.org; Wed, 26 Apr 2023 07:47:59 -0400 Original-Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-2f46348728eso4270653f8f.3 for <62990@debbugs.gnu.org>; Wed, 26 Apr 2023 04:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682509671; x=1685101671; 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=2CQMDmLioYSG6ijR+wamkY80pDrTPsHbiFOHKaiBZ8I=; b=RlLnRSV/8EcH8ns8hL0DxbwPr0qt1p2GQTzTuTk002WyQ5QicoWZl5QvcjTG0ZBqP0 5Ai5dYtYntUJmGFZAKgfb4Xm7TL+seser779nsWPjYhsqW3FYJP83Fmn6vUoAg9OPuom Znk5kxBJVQ45N1Um162zHuizF3vbEw5ej/hpEsfj2UmwHVFYnpM1ZkH013fx+dFKFA9B gS2EctSw9HJwPqpHDZU0jUWpkpXZmzdb4tXuWKurN0b56ouQ++MNbve8zqgMNwVXakQN DoCq+CH9yo5Z+jDG76HEyi+1zvLGycFnKCLKKRPAzXtEys65rIwT4AIld4/P6umrizfo mk0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682509671; x=1685101671; 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=2CQMDmLioYSG6ijR+wamkY80pDrTPsHbiFOHKaiBZ8I=; b=ZQpzUD2lPu+dYgGLvHdRM0R8zJATBUlI44e+T7AaeLVkGPlm4+5pztZyklSG6sdqJh fCJTfijM2DjD7vUiN6ioVXkSCBs1shf+cnM7NVtsMc6PgUxgoCbTyjZx0kthMofrWh8C iZV8rNz5LFKj5obWpAO80pT76VkPNQmlWpP1FXeh01BVxuILBSIiWp9YlL90JUZRmhFk NIZblOsDgNMkqEMDSpnfbfGIDLIfBX4jVVSjrRteSLuJ5I8skfHfNwshOB6oxM1k2qbC 2H/YOZLD5PcqEVUogQJhlJNfKRozJ17pRncAs6Zzoj8FMPxUtLVHBsTyAAxoQ92qBwAv 7+IA== X-Gm-Message-State: AAQBX9dzD99hUsuV8i062GdluspkH3Sn7XXdwZsYsjjE7Pk/8bSRiLVf 3VF99bIuyYxBMXfUH9GkUtg= X-Google-Smtp-Source: AKy350b6N7RcVntQVX4ZKL4qSQ2xqxlA4nOCqMoIH6jm0dSYcnixydOVXfEk6JNPhFxvF5XF/SvR9A== X-Received: by 2002:adf:dccc:0:b0:2ff:a6c5:2809 with SMTP id x12-20020adfdccc000000b002ffa6c52809mr14831521wrm.28.1682509671159; Wed, 26 Apr 2023 04:47:51 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id s12-20020a7bc38c000000b003f1739a0116sm17713035wmj.33.2023.04.26.04.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 04:47:50 -0700 (PDT) In-Reply-To: <83pm7rszbc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Apr 2023 13:38:47 +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:260669 Archived-At: >>>>> On Wed, 26 Apr 2023 13:38:47 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: 62990@debbugs.gnu.org, mail@vasilij.de >> Date: Wed, 26 Apr 2023 12:35:21 +0200 >>=20 >> >>>>> On Wed, 26 Apr 2023 13:30:32 +0300, Eli Zaretskii said: >>=20 Eli> Do we want some variable to get back the old behavior, in case some Eli> application out there depends on that? >>=20 >> For which one? Eli> The 2nd one. I guess we could, but if the application asks us to send an empty packet we should do it. >> Does it help if I say that [1] is a security fix? =F0=9F=98=9C Eli> No. But it will help if you convince me that it's a bug-fix. It transforms this: recvfrom(5, "hello", 4096, 0, {sa_family=3DAF_INET, sin_port=3Dhtons(56= 845), sin_addr=3Dinet_addr("127.0.0.1")}, [16]) =3D 5 Received string (5): "hello" recvfrom(5, "", 4096, 0, {sa_family=3DAF_INET, sin_port=3Dhtons(56845),= sin_addr=3Dinet_addr("127.0.0.1")}, [16]) =3D 0 Received event: "connection broken by remote peer into this: recvfrom(5, "hello", 4096, 0, {sa_family=3DAF_INET, sin_port=3Dhtons(55= 486), sin_addr=3Dinet_addr("127.0.0.1")}, [16]) =3D 5 Received string (5): "hello" recvfrom(5, "", 4096, 0, {sa_family=3DAF_INET, sin_port=3Dhtons(55486),= sin_addr=3Dinet_addr("127.0.0.1")}, [16]) =3D 0 recvfrom(5, "world", 4096, 0, {sa_family=3DAF_INET, sin_port=3Dhtons(55= 486), sin_addr=3Dinet_addr("127.0.0.1")}, [16]) =3D 5 Received string (5): "world" ie the UDP process is still running and can still receive messages Robert --=20