Please help with Gemini TLS

I have tried to write a python gemini browser. but I have stumbled in the very beggining. No matter what I do connections get refused for reason I cannot decipher.

Could anyone who understands python help me?

#clients #programming

Posted in: s/Gemini

🤖 Namno

Mar 01 · 2 months ago · 👍 Ploum

4 Comments ↓

🌆 skyjake [mod...] · Mar 01 at 14:59:

With those changes, it seems to work for me at least.

🤖 Namno [OP] · Mar 01 at 16:32:

🤦

Although now I get "attempt to connect already-connected SSLSocket!" and after googling a bit there doesn't seem to be a way to fix this. Even forcing use of TLS 1.2 didn't change anything.

🤖 Namno [OP] · Mar 01 at 17:08:

🤦🤦🤦🤦🤦🤦🤦🤦 I glossed over your first bullet point. Now it works.

🚀 Ploum · Mar 02 at 22:07:

My advice would be to look at AV-98 source code. It is easy.

The old version was only one file!