Skip to content
Tcl Source Code Artifact [8bb01f3870]
Login

Artifact [8bb01f3870]

Artifact 8bb01f3870b7a84f06bc020fdd01ecc93e6f4151:

Ticket change [8bb01f3870] - New ticket [496733ffffffffff|496733ffff] <i>Possible fix for obscure fconfigure bug</i>. by mdejong on 2001-12-26 06:50:10.
D 2001-12-26T06:50:10
J assignee andreas_kupries
J cmimetype text/plain
J comment I\sran\sinto\sthis\sbug\swhile\sre-implementing\sfconfigure\sin\nJacl.\nIt\sseems\sthe\sTcl_GetChannelOption\sfunction\sdoes\snot\nquite\nknow\swhat\sto\sdo\sabout\sa\schannel\sthat\sis\sneither\nreadable\snor\nwritable.\sHere\sis\swhat\sit\scurrently\sreturns:\n\n%\sset\ssock\s[socket\s-server\saccept\s0]\nsock3\n%\sfconfigure\s$sock\n-blocking\s1\s-buffering\sfull\s-buffersize\s4096\s-encoding\niso8859-1\s-eofchar\s-translation\s-sockname\s{0.0.0.0\n0.0.0.0\s2001}\n\nThe\s-eofchar\sand\s-translation\sproperties\sshould\sat\nleast\shave\nsome\svalue\sin\sthe\slist.\sWhat\sexactly\sthese\sproperties\nwould\nbe\sused\sfor\son\sa\sserver\ssocket\sis\snot\sclear.\sFor\nexample,\nwhy\swould\syou\swant\sto\sset\sthe\s-blocking\sproperty\son\sa\nserver\ssocket?\n\nAlso\snote\sthat\sthe\sTcl_SetChannelOption\smethod\sdoes\snot\nknow\nhow\sto\sset\sthese\svalues\ssince\sit\sis\snot\sclear\sif\sthe\ninput\nout\sthe\soutput\svalue\swould\sbe\schanged\sfor\sa\sserver\nsocket.\n\nThe\squick\ssolution\sI\scame\sup\swith\swas\sto\sjust\spretend\nthese\nvalues\sare\sread\sonly.\sIt\swas\seasy\sto\simplement\sand\stest\nand\sI\scan't\simagine\sthis\swould\sactually\smatter\sto\nanyone,\nso\sit\sseemed\slike\sthe\sright\sthing\sto\sdo.\sThe\sattached\npatch\nimplements\sthese\schanges\sand\sadd\ssome\stest\scases\sthat\ncheck\nthe\sbehavior.\n\n\n\n
J foundin obsolete:\s8.4a4
J priority 3\sLow
J resolution None
J status Open
J submitter mdejong
J subsystem 24.\sChannel\sCommands
J title Possible\sfix\sfor\sobscure\sfconfigure\sbug
J type Bug
K 496733ffffffffffffffffffffffffffffffffff
U mdejong
Z c5806d68d2ad319fff5f1fe3247adf40