Sujet : Re: Maximum for gets
De : vivid.tree7955 (at) *nospam* fastmail.com (Petro Kazmirchuk)
Groupes : comp.lang.tclDate : 28. Apr 2025, 20:48:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vuom2f$1obn$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
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