Skip to content
Tcl Source Code Artifact [3625c2f660]
Login

Artifact [3625c2f660]

Artifact 3625c2f66013e364361122e7e9c2a31e8e06e19c:

Ticket change [3625c2f660] - Ticket [1665628fffffffff|1665628fff] <i>cannot efficiently modify a ByteArray</i> status still Open with 4 other changes by dvrsn on 2007-02-23 01:45:12.
D 2007-02-23T01:45:12
J icomment Logged\sIn:\sYES\s\nuser_id=24996\nOriginator:\sYES\n\nI\swill\stry\sthe\ssuggestion\sin\smy\sapplication,\sbut\sthe\sgeneral\sproblem\swith\s\n\nbinary\sscan\s[read\s$sock\s4]\sI\sdlen\nbinary\sscan\s[read\s$sock\s$dlen]\sa*\sdata\n\nis\sthat\swhen\s$sock\sis\snon-blocking\syou\sare\snot\sguaranteed\sto\sactually\sread\s$dlen\sbytes;\swhile\sif\sit\sis\sblocking\sthen\sit\scan\sincur\san\sunacceptably\slong\spause\sin\sevent\shandling.\s\sBeyond\sthat,\sif\sthe\s"data"\sitself\scontains\sadditional\scounted\sstrings\sthen\sthis\stechnique\sis\sof\sno\shelp\ssince\syou\sare\sno\slonger\sreading\sfrom\sa\sstream.\n\nI\swonder\sif\sthe\sproblem\shas\snot\sbeen\snoticed\smore\sbecause\sit\sonly\sshows\sup\s(as\sdo\sso\smany\sothers)\swith\sscale\s--\sI\sdid\snot\snotice\sit\suntil\smy\sbuffer\ssizes\swere\sseveral\smegabytes.\n
J login dvrsn
J mimetype text/plain
J username dvrsn
K 1665628fffffffffffffffffffffffffffffffff
U dvrsn
Z 415f4e74e91b646ff880d755e9124a55