From ce775ed35ada7fb59a42084955c3dd76be851df8 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Sat, 17 Jun 2023 10:42:33 +0300

Subject: [PATCH 1/1] Updated docs


gmcapsule/init.py | 28 +++++++++++++++++++---------

gmcapsule/gemini.py | 6 ++++--

2 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/gmcapsule/init.py b/gmcapsule/init.py

index 96ec7d8..9586881 100644

--- a/gmcapsule/init.py

+++ b/gmcapsule/init.py

@@ -102,6 +102,14 @@ modules : path [path...]

threads : int

 Number of worker threads. At least 1 is required. Defaults to 5.

+processes : int

titan

@@ -370,7 +378,8 @@ contextual information:

-- REMOTE_IDENT (when client certificate provided)

+- TLS_CLIENT_HASH (when client certificate provided)

+- REMOTE_IDENT (fingerprints of client certificate and public key)

@@ -413,6 +422,10 @@ That is, the name of the extension ("extmod") is prefixed with two numbers

which modules are loaded. The ones loaded first have precedence over

registered URL entry points.

+If the server has been configured to use multiple processes, each process

+loads the extensions separately. This may require synchronizing access to

+external resources accessed by extensions.

Initialization


@@ -447,12 +460,11 @@ to the client:

The response body will be empty. This is useful for error messages and

redirects.

-- Returning a three-element tuple is interpreted as (status code, meta,

+- Returning a three-element tuple is interpreted as (status, meta, body).

Future improvements

@@ -462,8 +474,6 @@ The following limitations could/should be lifted in the future:

defined values and environment variables.

-- Add Titan configuration option to not require a client certificate.

-- Extension modules should be reloadable. Add a deinit() method.

be cacheable.

diff --git a/gmcapsule/gemini.py b/gmcapsule/gemini.py

index 163871b..e80183e 100644

--- a/gmcapsule/gemini.py

+++ b/gmcapsule/gemini.py

@@ -616,8 +616,10 @@ class Context:

         request (Request): Request object.

     Returns:

     """

     entrypoint = self.find_entrypoint(request.scheme, request.hostname, request.path)

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/gmcapsule/main/patch/ce775ed35ada7fb59a42084955c3dd76be851df8.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
25.958071 milliseconds
Gemini-to-HTML Time
1.35018 milliseconds

This content has been proxied by September (ba2dc).