Re: Run a script every time a message is sent to a socket

From: Paul Sopka <psopka_at_sopka.ch>
Date: Sun, 8 Dec 2024 22:36:47 +0100

>  I don't have a program to do this, no, because it's rare that you
> handle datagram sockets on the command line. It's pretty easy to do
> in C, though (especially if you're using skalibs ;))
>
>  However, a design warning: if you're doing this, it's important to have
> throttle/rate-limiting options. Because data can arrive on a socket much,
> much faster than you can spawn a script, and unless the sender is fully
> trusted, it's a pretty good way to forkbomb and crash your machine.
>
> --
>  Laurent
>
A good opportunity to improve my C.
Thank you very much!

Have a nice week

Paul

Received on Sun Dec 08 2024 - 22:36:47 CET

This archive was generated by hypermail 2.4.0 : Sun Dec 08 2024 - 22:37:24 CET