TLS shutdown not detected?
I filed a bug report for the gemini server I use because it didn't send a TLS shutdown for error messages:
https://github.com/mbrubeck/agate/issues/100
The bug has been fixed and the maintainer has verified that the shutdown is indeed being sent but Agunua doesn't detect it:
$ openssl s_client -connect 127.0.0.1:1965 -servername localhost -msg
[...]
---
SSL handshake has read 2109 bytes and written 381 bytes
Verification error: self signed certificate
---
[...]
gemini://localhost/doesnotexist^M
>>> ??? [length 0005]
17 03 03 00 32
>>> TLS 1.3 [length 0001]
17
<<< ??? [length 0005]
17 03 03 00 27
51 Not found, sorry.
<<< ??? [length 0005]
17 03 03 00 13
<<< TLS 1.3 [length 0001]
15
<<< TLS 1.3, Alert [length 0002], warning close_notify
01 00
closed
>>> ??? [length 0005]
17 03 03 00 13
>>> TLS 1.3 [length 0001]
15
>>> TLS 1.3, Alert [length 0002], warning close_notify
01 00
$ ./agunua gemini://localhost/doesnotexist
Warning, no TLS shutdown received from the server
Problem, Not found (extra message: "Not found, sorry.").
I don't know enough about the topic to verify if the above is valid - it may not be a bug at all. I just wanted to let you know this issue exists.