| Ticket Hash: | 8b681abb1ef581f72e877392daa449cc24c98a30 | ||
| Title: | Tcl application hangs during connection establishment to server not answering on TLS connection properly. | ||
| Status: | Open | Type: | Code Defect |
| Severity: | Critical | Priority: | Immediate |
| Subsystem: | Resolution: | Open | |
| Last Modified: |
2026-02-06 04:17:35 40.4 days ago |
Created: |
2026-02-04 09:42:33 42.1 days ago |
| Version Found In: | 2.0 tcltls-20260122101940-ba2ee7744c and previous releases | ||
| User Comments: | ||||
anonymous added on 2026-02-04 09:42:33:
Tcl application hangs during connection establishment to server not answering on TLS connection properly. tcltls has been compiled using TCl/Tk 8.6.17 and openssl 3.5.5 (linux and macos) Problem with tcltls-20260122101940-ba2ee7744c (also present in previous releases): How to reproduce:start a server with:
In a second shell, start tclsh or width and run the following commands:
Application hangs indefinitly until one types 5 characters and return in the ncat window. When compiled with debug output enabled one can see that tcltls hangs in (snippet of output):
Once the input is type in ncat, the process continues:
RationalThe process should not hang when the server does not send a proper response to the TLS connection request, especially when a timeout has been specified for the https request. bohagan added on 2026-02-06 04:17:35:
Not sure what you are testing here, but it appears to be missing info. Your ncat command didn't include the --ssl option. So it's just a regular connection. Also you didn't change the channel config, so its a blocking socket and buffering is line mode. So, it won't do anything until you input a EOL. If your goal is to test sending chat data, look at the demos/echat.tcl application. Start one with the -server option then one or more with the -client option. The server will then echo whatever text it receives from a client to all clients. | ||||