Re: Maximum for gets

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Maximum for gets
De : saitology9 (at) *nospam* gmail.com (saito)
Groupes : comp.lang.tcl
Date : 28. Apr 2025, 21:50:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vuopn1$4uqg$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 4/28/2025 3:48 PM, Petro Kazmirchuk wrote:
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
Thank you for the tip. This is for a local script sending another some data via std channels. I was afraid that they might have a problem with data sizes around 5K :-)

Date Sujet#  Auteur
28 Apr 25 * Maximum for gets3saito
28 Apr 25 `* Re: Maximum for gets2Petro Kazmirchuk
28 Apr 25  `- Re: Maximum for gets1saito

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal