Comment by 🚀 stack

Re: "DIY Gemini Servers..."
In: u/stack

KTLS/async in kernel is not really an option.

I thought it would be -- it's been around like a couple of years! But on my AWS Ubuntu 24.04 instance, OpenSSL is compile without ktls, and the kernel is not configured to do kTLS.

Took me half a day to figure it out -- after a ton of looking around headers and kernel modules I even recompiled OpenSSL with ktls only to find out it did not actually compile because the kernels is stubbed -- reporting that it does support ktls but actually doing nothing. Why? I don't know.

So back to non-blocking sockets and old event loop.

🚀 stack [OP]

Sep 10 · 3 months ago

2 Later Comments ↓

🚀 ingrix · Sep 10 at 15:24:

@stack darn, that's a shame. I had read about KTLS a while back and forgot about it. If you had gotten it to work that would have been awesome. I guess good luck with the old-fashioned method in the meantime though, I'm happy to bounce ideas around with you if you need, too.

🚀 stack [OP] · Sep 10 at 15:53:

@ingrix -- thanks, I may bother you with some questions. And your code is pretty good too.

I think I could probably get ktls to work on my dev box, but with all the hosting issues it's probably better to wait till it's more mainstreamed.

Original Post

🚀 stack

DIY Gemini Servers... — I am kind of tired of bending over backwards to code CGI games running behind a server built for an entirely different purpose. I am just going to write my own. This is easier than what I am doing now, opening and closing users and game state databases and loading the same stupid files for every click. The game logic is really, really fast with the game pre-loaded. User data is likewise in RAM. The only variable is the network. I could write a simple async server...

💬 11 comments · 2 likes · Sep 04 · 3 months ago