Artifact [f78047d016]

Artifact f78047d0162a1008c5c170b0dceacdc785378de3c1005f1abc5c24cbcbc4a839:

Ticket change [f78047d016] - New ticket [8b681abb1ef581f7|8b681abb1e] <i>Tcl application hangs during connection establishment to server not answering on TLS connection properly.</i>. by anonymous on 2026-02-04 09:42:33.
D 2026-02-04T09:42:33.241
J foundin 2.0\stcltls-20260122101940-ba2ee7744c\sand\sprevious\sreleases
J icomment #\sDescription\r\n\r\nTcl\sapplication\shangs\sduring\sconnection\sestablishment\sto\r\nserver\snot\sanswering\son\sTLS\sconnection\sproperly.\r\n\r\ntcltls\shas\sbeen\scompiled\susing\sTCl/Tk\s8.6.17\sand\sopenssl\s3.5.5\s(linux\sand\smacos)\r\n\r\nProblem\swith\stcltls-20260122101940-ba2ee7744c\s(also\spresent\sin\sprevious\sreleases):\r\n\r\n\r\n#\sHow\sto\sreproduce:\r\n\r\nstart\sa\sserver\swith:\r\n\r\n```\r\nncat\s-l\s-p\s8143\s-w\s2\r\n```\r\n\r\nIn\sa\ssecond\sshell,\sstart\stclsh\sor\swidth\sand\srun\sthe\sfollowing\r\ncommands:\r\n\r\n```\r\npackage\srequire\shttp;\spackage\srequire\stls;\r\nset\stok\s[http::geturl\shttps://localhost:8143/info\s-timeout\s3000]\r\n```\r\n\r\nApplication\shangs\sindefinitly\suntil\sone\stypes\s5\scharacters\sand\sreturn\r\nin\sthe\sncat\swindow.\sWhen\scompiled\swith\sdebug\soutput\senabled\sone\scan\r\nsee\sthat\stcltls\shangs\sin\s(snippet\sof\soutput):\r\n\r\n```\r\n...\r\n/opt/projects/prs/dvx1000/src/tcltls-20260122101940-ba2ee7744c/generic/tlsIO.c:936:Tls_GetParent():Requested\sto\sget\sparent\sof\schannel\s0xa0c49a290\r\n/opt/projects/prs/dvx1000/src/tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:104:BioOutput():[chan=0xa0c49a210]\sBioOutput(bio=0xa0ba66f00,\sbuf=0xa0ac0e000,\slen=1542)\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:115:BioOutput():[chan=0xa0c49a210]\sBioOutput(1542)\s->\s1542\s[tclEof=0;\stclErrno=0:\sUndefined\serror:\s0]\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:118:BioOutput():Successfully\swrote\s1542\sbytes\sof\sdata\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:146:BioOutput():BioOutput\sreturning\s1542\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsIO.c:936:Tls_GetParent():Requested\sto\sget\sparent\sof\schannel\s0xa0c49a290\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:274:BioCtrl():BioCtrl(0xa0ba66f00,\s0xb,\s0x0,\s0x0)\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:336:BioCtrl():Got\sBIO_CTRL_FLUSH\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:402:BioCtrl():BioCtrl\sreturn\svalue\s1\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tls.c:158:InfoCallback():Called\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsIO.c:936:Tls_GetParent():Requested\sto\sget\sparent\sof\schannel\s0xa0c49a290\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:176:BioInput():[chan=0xa0c49a210]\sBioInput(bio=0xa0ba66f00,\sbuf=0xa0b35c003,\slen=5)\r\n.../tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:193:BioInput():[chan=0xa0c49a210]\sBioInput(buf\slen=5)\s->\s5\s[tclEof=0;\sblocked=0;\stclErrno=0:\sUndefined\serror:\s0]\r\n```\r\n\r\nOnce\sthe\sinput\sis\stype\sin\sncat,\sthe\sprocess\scontinues:\r\n\r\n```\r\n...\r\n/opt/projects/prs/dvx1000/src/tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:196:BioInput():Successfully\sread\s5\sbytes\sof\sdata\r\n/opt/projects/prs/dvx1000/src/tcltls-20260122101940-ba2ee7744c/generic/tlsBIO.c:221:BioInput():BioInput\sreturning\s5\r\n/opt/projects/prs/dvx1000/src/tcltls-20260122101940-ba2ee7744c/generic/tls.c:244:MessageCallback():Called\r\n/opt/projects/prs/dvx1000/src/tcltls-20260122101940-ba2ee7744c/generic/tls.c:244:MessageCallback():Called\r\n...\r\n```\r\n\r\n#\sRational\r\n\r\nThe\sprocess\sshould\snot\shang\swhen\sthe\sserver\sdoes\snot\ssend\sa\r\nproper\sresponse\sto\sthe\sTLS\sconnection\srequest,\sespecially\swhen\sa\r\ntimeout\shas\sbeen\sspecified\sfor\sthe\shttps\srequest.
J login anonymous
J mimetype text/x-markdown
J severity Critical
J status Open
J title Tcl\sapplication\shangs\sduring\sconnection\sestablishment\sto\sserver\snot\sanswering\son\sTLS\sconnection\sproperly.
J type Code\sDefect
K 8b681abb1ef581f72e877392daa449cc24c98a30
U anonymous
Z bf332d7e72cf1a65ec13ea459879644c