-- Leo's gemini proxy

-- Connecting to bbs.geminispace.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

Lagrange crashes when fed binary file as index.gmi


Previously there was a question here, because I had no idea what was going on and I though it had something to do with localhost vs remote hosts. I was wrong.


My Lagrange on Mac becomes unresponsive when I view this link (be careful before clicking!)


gemini://blube.club


What I am serving here is simply a binary executable which I compiled from Go. The file is called index.gmi and placed at the root of the static/blube.club/ directory, served by GmCapsule.


Posted in: s/Lagrange

๐Ÿ satch

Jan 28 ยท 4 months ago


3 Comments โ†“


๐Ÿ‘พ fab ยท Jan 29 at 01:27:

Same with clagrange


๐Ÿ•น๏ธ skyjake [mod...] ยท Jan 29 at 05:17:

It does not crash for me, athough it takes quite a while for the page to finish loading. The problem here is that you are returning a "text/gemini" response whose body is 1.3 MB of binary (executable?) data. Lagrange is dutifully trying to render the contents for you as text.


You need to fix your server configuration...


There is a relevant issue for this on GitHub:

โ€” https://github.com/skyjake/lagrange/issues/601


๐Ÿ satch [OP] ยท Jan 29 at 13:12:

Okay, I knew that's what my server was doing, I just didn't know the issue was already documented. I set up ://blube.club/ that way specifically to demonstrate the Lagrange issue, not because I was trying to serve CGI from my static directory.

-- Response ended

-- Page fetched on Sun May 19 15:19:59 2024