D 2026-02-04T09:06:13.877 J foundin 2.0+,\s1.8,\scommit\sca1a846290,\sbut\saffects\solder\sand\snewer\scommits\sas\swell J icomment The\sproblem\sstill\soccurs\swith\sV2.0\s(tcltls-20260122101940-ba2ee7744c).\r\n\r\nThe\sdelivered\spatch\shas\snot\sbee\sintegrated\sinto\sthe\ssource.\sHere\sis\san\supdated\sversion\sof\sthe\spatch\s(starting\s\saround\stlsIO.c:230).\r\n\r\n```\r\n\tif\s(ret\s<=\s0)\s{\r\n\t\s\s\s\s/*\r\n\t\s\s\s\s\s*\sProblem\shere\swhen\ssocket\sis\snot\sasync\sand\sstill\snot\r\n\t\s\s\s\s\s*\sconnected,\savoid\sto\sloop\sendlessly.\sThis\shappens\sto\sbe\sthe\scase\r\n\t\s\s\s\s\s*\sthe\sthe\sdestination\sIP\sis\sreachable\sbut\sno\sservice\sresponds\son\r\n\t\s\s\s\s\s*\sthe\srequested\sport.\sTcl\shttp\sdoes\snot\sput\sthe\ssocket\sin\sasync\r\n\t\s\s\s\s\s*\smode\suntil\sconnected\sso\swe\sneed\sto\sallow\sthe\sTcl\sevent\sloop\sto\r\n\t\s\s\s\s\s*\scatch\sthe\stimeout\sand\ssit\son\sa\svwait\sfor\sthe\shttp\stoken.\r\n\t\s\s\s\s\s*\sTest\scase\swhich\syields\shang\sin\sendless\sloop\shere\swithout\sthis\spatch\sis:\r\n\t\s\s\s\s\s*\spackage\srequire\shttp;\r\n\t\s\s\s\s\s*\spackage\srequire\stls;\r\n\t\s\s\s\s\s*\s::http::register\shttps\s443\s[list\s::tls::socket\s-autoservername\strue]\r\n\t\s\s\s\s\s*\sset\stok\s[http::geturl\shttps://localhost:8143/info\s-timeout\s3000]\r\n\t\s\s\s\s\s*\shttp::status\s$tok;\r\n\t\s\s\s\s\s*/\r\n\t\s\s\s\sif(statePtr->flags\s&\sTLS_TCL_ASYNC)\s{\r\n\t\tif\s(rc\s==\sSSL_ERROR_WANT_CONNECT\s||\src\s==\sSSL_ERROR_WANT_ACCEPT)\s{\r\n\t\t\s\s\s\sbioShouldRetry\s=\s1;\r\n\t\t}\selse\sif\s(rc\s==\sSSL_ERROR_WANT_READ)\s{\r\n\t\t\s\s\s\sbioShouldRetry\s=\s1;\r\n\t\t\s\s\s\sstatePtr->want\s|=\sTCL_READABLE;\r\n\t\t}\selse\sif\s(rc\s==\sSSL_ERROR_WANT_WRITE)\s{\r\n\t\t\s\s\s\sbioShouldRetry\s=\s1;\r\n\t\t\s\s\s\sstatePtr->want\s|=\sTCL_WRITABLE;\r\n\t\t}\r\n\t\s\s\s\s}\r\n\t}\r\n```\r\n\r\nThis\sfixes\sthe\sdescribed\sproblem.\sPlease\sintegrate\sthe\spatch\sin\sto\s2.0+. J login anonymous J mimetype text/x-markdown J resolution Open J status Open K 48eddca89ea79b5cb6477d5f9f46cc890873cf92 U anonymous Z 8875fd93783a02d685d22a47a12f5f73