1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-03 22:58:53 +00:00
Files
open-simh.simh/sim_sock.c
Tony Lawrence b88cd40771 SCP: SOCK: Increase backlog in the listen() syscall
The currently used backlog of (1) effectively disables any two or more
simultanueously incoming connections at the kernel level, because the
backlog parameter only allows 1 such connection.  Yet since terminal
multiplexers can handle tens of clients, it's not technically impossible to
have more than one incoming request to be received at any particular moment
(for two different "lines").  A reasonable backlog of more than 1 safeguards
that the "extra" connections won't be refused outright, and postpones that
decision to be made by simh (not the kernel) -- for example, when, say, all
multiplexer lines are busy, with an explanation (which states so) rather than
just the infamous "Connection reset by peer" (effected by the kernel reset).

This patch increases the backlog to 64.
2023-10-24 12:42:09 -04:00

49 KiB