💾 Archived View for rawtext.club › ~sloum › geminilist › 007611.gmi captured on 2023-09-08 at 16:30:53. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

Fw: Re: [ANN] Specification update

Alex // nytpu alex at nytpu.com

Mon Nov 15 15:29:19 GMT 2021

- - - - - - - - - - - - - - - - - - - 

Luckily it's pretty easy to test this with openssl's s_client, it'll say"closed" at the end if the connection was closed properly:

printf "gemini://nytpu.com/about.gmi\r\n" | openssl s_client -ign_eof -connect nytpu.com:1965

outputs:

depth=0 O = nytpu, CN = nytpu.com verify error:num=18:self signed certificate [...handshake and cert info...] 20 text/gemini; lang=en-US [...the actual response body (if success response code)...] [...end-of-connection info...] closed

Here's a handy little shell function where you give it a URI and it'llcheck if it's closed properly or not:

test_close_notify() { hostname="$(printf "$1" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')" output="$(printf "%s\r\n" "$1" | openssl s_client -ign_eof -connect "${hostname}:1965" 2

&1 | tail -n1 | tr -d '\n')" if [ "${output}" = "closed" ]; then printf "close_notify for '%s' properly recieved.\n" "$1"
&2 else printf "close_notify for '%s' not received!\n" "$1"
&2 fi }

~nytpu

-- Alex // nytpualex at nytpu.comgpg --locate-external-key alex at nytpu.com-------------- next part --------------A non-text attachment was scrubbed...Name: signature.ascType: application/pgp-signatureSize: 833 bytesDesc: not availableURL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20211115/608ca612/attachment.sig>