💾 Archived View for rawtext.club › ~sloum › geminilist › 002132.gmi captured on 2020-09-24 at 01:24:44. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
juhani juhani at envs.net
Thu Jul 9 13:27:54 BST 2020
- - - - - - - - - - - - - - - - - - -
Hi all,
I'm juhani, new here, and implementing an Android gemini client.
While testing with live sites for the first time I found that some sites worked,and on others the response handling hung. Comparison of tcp streams revealedthat on the working sites the last packet from the server had FIN flag, and onthe failing sites it didn't.
I changed the client so it doesn't try to read the whole response before parsingthe header. And added timeout to make sure the connection is closed.
These changes make sense to me, but what should the client do if it cant be sureit has the complete payload? With line based content it's possible to show whatyou've got. The clients I've tried, so far, seem to do that, but is it correct?And what about binary content?
~juhani
gemini://envs.net/~juhanihttps://git.envs.net/juhani/minigem