• Re: Maximum for gets

    From Petro Kazmirchuk@21:1/5 to saito on Mon Apr 28 21:48:32 2025
    On 28/04/2025 21:32, saito wrote:
    Is there a limit to the number of characters that gets can read at a time?

    in principle, it is limited only by the max length of Tcl string (~2GB
    in Tcl 8.6), that's why when using it with sockets, it is recommended to combine gets with [chan pending] to protect against malicious or
    misbehaving peer, see https://wiki.tcl-lang.org/page/chan+pending

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)