View Ticket
Ticket Hash: bb7085cfdcc8c12d18911ce54af574232d568fdd
Title: Test tlsIO-8.1 breaks on FreeBSD
Status: Closed Type: Code Defect
Severity: Important Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2024-02-23 15:31:36
Version Found In: 1.7.22
User Comments:
doofus added on 2023-11-20 01:46:41: (text/x-markdown)
Without the patch, the `gets` from the non-blocking socket `$s1` returns an _empty string_ here, instead of the `bye` written into it from the other side:

```patch
--- tests/tlsIO.test 2020-10-12 16:39:22.000000000 -0400
+++ tests/tlsIO.test 2023-11-19 20:33:44.077356000 -0500
@@ -1106,4 +1106,5 @@
     # need update to complete TLS handshake in-process
     update
+    fconfigure $s1 -blocking 1
     set z [gets $s1]
     close $s
```

jan.nijtmans added on 2024-02-23 15:31:36: (text/x-fossil-wiki)
Fixed [512884129297c598|here]