From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vasilij Schneidermann Newsgroups: gmane.emacs.bugs Subject: bug#62990: 30.0.50; UDP server closes connection upon receiving an empty packet Date: Mon, 24 Apr 2023 23:04:34 +0200 Message-ID: References: <87wn21br45.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VFv7F+9MWpb8rsY+" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18332"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62990@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 24 23:05:15 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 1pr3N4-0004ZW-Bq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Apr 2023 23:05:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pr3Mu-0002cB-Un; Mon, 24 Apr 2023 17:05:04 -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 1pr3Ms-0002c2-KP for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 17:05:02 -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 1pr3Ms-0000fS-3f for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 17:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pr3Mr-0001IU-Ts for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 17:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Apr 2023 21:05:01 +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.16823702864961 (code B ref 62990); Mon, 24 Apr 2023 21:05:01 +0000 Original-Received: (at 62990) by debbugs.gnu.org; 24 Apr 2023 21:04:46 +0000 Original-Received: from localhost ([127.0.0.1]:50471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr3Mc-0001Hx-7z for submit@debbugs.gnu.org; Mon, 24 Apr 2023 17:04:46 -0400 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]:58848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr3Ma-0001Hj-GT for 62990@debbugs.gnu.org; Mon, 24 Apr 2023 17:04:44 -0400 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Q4yLX2SsWz9slv; Mon, 24 Apr 2023 23:04:36 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87wn21br45.fsf@gmail.com> X-Rspamd-Queue-Id: 4Q4yLX2SsWz9slv 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:260586 Archived-At: --VFv7F+9MWpb8rsY+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Empty TCP messages are perfectly valid, but they should be hidden from > you. recvfrom returning 0 means the connection has been closed, but > that=CA=BCs a separate thing. I suspect there's a missing ifdef in the code which ends up terminating the process on such a condition, for both TCP and UDP. > Could you show how you=CA=BCre generating the empty packets? Download the attachments from my previous email, launch the server with `emacs --batch -l bug-server.el`, then the client with `guile fixed-client.scm`. Swap out the server with `guile fixed-server.scm`. > It=CA=BCs allowed by the protocol. I guess it could be useful for people > wanting to implement their own keep-alive protocol over UDP. I think so as well. --VFv7F+9MWpb8rsY+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEE0dAcySl3bqM8O17WFmfJg6zCifoFAmRG7t4ACgkQFmfJg6zC ifrHEgf9Evm8Kvhyd5r1LvRu5t1U+lM/Ahvht4m2dvDLPA1wZx5e0I5d7OzNk5uZ ZPlFN5R6BXbmq0LUyVO7rB6433bDCZ+q5DVRUmBUSS/WXXviTa9qk+ui6U9V63n2 ObitSSAv3TDsyoH12UTil0bOj4GCKS1GDD1IJnmaP/gg4CXU9Qtb6feQJ3VeMjh4 uTXjB+3O2GjfbBirJvx2pqaIvNrxCgJTOTL1CqtOOlOOZjcZ/yqHvpzvFWAyrdfZ 9DAdm94GRfBrAwczLsWNxvhaHjYEw8UcKVadyWHTXM/Xo7Gt+Xx+uH62bb1YbqoA RJ3Qf97G+RQ6pSrRTNqrdMKMJn2kEQ== =Fzvh -----END PGP SIGNATURE----- --VFv7F+9MWpb8rsY+--