HF RL Explorer

TCP Socket Readable Event Bug Fix in Tcl

TCP Socket Readable Event Bug Fix in Tcl: a task in Terminal-Lego-15k (Harbor dataset). In a Tcl application that creates multiple TCP server sockets (each in its own thread) and connects to them from a main thread, a bug manifests when the number of sockets reaches a certain threshold…

The task

In a Tcl application that creates multiple TCP server sockets (each in its own thread) and connects to them from a main thread, a bug manifests when the number of sockets reaches a certain threshold. Specifically, when 20 or more socket pairs are created, the last socket's `readable` event handler fires repeatedly…

Part of PrimeIntellect/Terminal-Lego-15k.