add pid/eid/gid
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
3f1df57558
commit
0e0af9afa5
|
@ -16,11 +16,15 @@ class Server
|
|||
@cq\wrap ->
|
||||
with conn
|
||||
_, ip = \peername!
|
||||
pid, uid, gid = \peerpid!, \peereid!
|
||||
request = \read "*l"
|
||||
\shutdown "r"
|
||||
u = url.parse request
|
||||
ctx =
|
||||
:ip
|
||||
:pid
|
||||
:uid
|
||||
:gid
|
||||
host: u.host
|
||||
path: u.path
|
||||
query: u.query
|
||||
|
|
|
@ -13,9 +13,9 @@ class ProxyRequestRefusedHandler
|
|||
|
||||
with gemini.Server ProxyRequestRefusedHandler!
|
||||
\listen socket.listen "127.0.0.1", "58816"
|
||||
-- \listen socket.listen
|
||||
-- path: "./var/mipha.sock"
|
||||
-- unlink: true
|
||||
\listen socket.listen
|
||||
path: "./var/mipha.sock"
|
||||
unlink: true
|
||||
\attach cq
|
||||
|
||||
assert cq\loop!
|
||||
|
|
Loading…
Reference in New Issue