Session
Object Hierarchy:
Description:
public class Session : Object
HTTP RPC session — shared bin JIT name tables, sequence, i**Stock prove (no layout overlay) after READY (2026-09-12 10:27):** ** o
END** for the whole settle o** ext (do now):** fix why Live.Invoke for that preferred_width never reaches the ** layout.js override. s**
hard cap until past that boundary; early-stop on `READY=1` / A4 marker. amed** RPC gap appears; then live re-prove. ️**
`GI_RPC_JS_OVERRIDE_DIR` only when deliberately bisecting — prove scripts do **not** default it.
Many HttpReply POSTs share one session's
bin tables. Leases and
Connection.next_handle live on each
HttpReply (per POST), not here. HTTP looks up sessions by X-rpc-session
via take. Socket
Connection does not use this type.
Example
var session = OLLMrpc.Transport.Session.take("");
var reply = new OLLMrpc.Transport.HttpReply(soup, msg, session);
Content:
Properties:
- public Stream bin { get; set; }
Shared JIT wire-name tables (
Bin.Stream.client_names / Bin.Stream.server_names). I/O streams are attached per POST on
HttpReply;
Bin.Stream.connection points at the active HttpReply for that
POST's leases.
- public string id { get; set; }
Opaque session UUID (echoed on X-rpc-session; empty until
assigned).
- public int64 last_used { get; set; }
Monotonic µs of last
take touch (idle expiry).
- public uint sequence { get; set; }
Per-session request counter. Client must send the last echoed value
(or 0 / omit on first POST); -1 resets bin + counter. Server increments on accept.
Static methods:
- public static Session? take (string id)
Look up id, or allocate a new session when id is empty.
Purges idle sessions first; touches last_used on success.
Creation methods:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref