diff options
| author | alex <alex@pdp7.net> | 2026-08-19 22:58:35 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-08-19 23:00:54 +0200 |
| commit | c7c81f25eac9f7b346e6980d6aa38729b54be6a2 (patch) | |
| tree | 3d49d0d215df419d8f9b89e4cb0f64769b405a6d /gemini-from-http/proxy.py | |
| parent | 5b34b41bd33b0a8602625ae4b9946c95d0839502 (diff) | |
Close SSL socket correctly
echo "gemini://alex.corcoles.net/" | openssl s_client -connect alex.corcoles.net:1965 -servername "alex.corcoles.net" -quiet -crlf -no_ssl3 -no_tls1 -no_tls1_1
now does not print:
2020469EFFFF0000:error:0A000126:SSL routines::unexpected eof while reading:../ssl/record/rec_layer_s3.c:698:
Diffstat (limited to 'gemini-from-http/proxy.py')
| -rwxr-xr-x | gemini-from-http/proxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gemini-from-http/proxy.py b/gemini-from-http/proxy.py index b3411ca..124effa 100755 --- a/gemini-from-http/proxy.py +++ b/gemini-from-http/proxy.py @@ -34,7 +34,7 @@ class Handler(socketserver.BaseRequestHandler): response += content sock.sendall(response.encode("UTF8")) - + sock.unwrap() def main(): logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(message)s") |
