all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vasilij Schneidermann <mail@vasilij.de>
To: Robert Pluim <rpluim@gmail.com>
Cc: 62990@debbugs.gnu.org
Subject: bug#62990: 30.0.50; UDP server closes connection upon receiving an empty packet
Date: Mon, 24 Apr 2023 23:04:34 +0200	[thread overview]
Message-ID: <ZEbu4vdQTvaNBcXD@odonien> (raw)
In-Reply-To: <87wn21br45.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

> Empty TCP messages are perfectly valid, but they should be hidden from
> you. recvfrom returning 0 means the connection has been closed, but
> thatʼs 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ʼre 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ʼs 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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2023-04-24 21:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-21 10:36 bug#62990: 30.0.50; UDP server closes connection upon receiving an empty packet Vasilij Schneidermann
2023-04-24  8:51 ` Robert Pluim
2023-04-24 21:04   ` Vasilij Schneidermann [this message]
2023-04-25  8:07     ` Robert Pluim
2023-04-26  9:14       ` Robert Pluim
2023-04-26 10:30         ` Eli Zaretskii
2023-04-26 10:35           ` Robert Pluim
2023-04-26 10:38             ` Eli Zaretskii
2023-04-26 11:47               ` Robert Pluim
2023-04-26 12:24                 ` Eli Zaretskii
2023-04-26 14:27                   ` Robert Pluim
2023-04-26 10:58             ` Vasilij Schneidermann
2023-04-26 10:56       ` Vasilij Schneidermann
2023-04-26 11:50         ` Robert Pluim
2023-04-26 14:31           ` Robert Pluim
2024-03-09 13:40             ` Vasilij Schneidermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZEbu4vdQTvaNBcXD@odonien \
    --to=mail@vasilij.de \
    --cc=62990@debbugs.gnu.org \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.