mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Fix redbean OnLogLatency documentation (#1270)
The handler is called in the child worker process.
This commit is contained in:
parent
c9152b6f14
commit
a6fe62cf13
1 changed files with 4 additions and 4 deletions
|
@ -581,10 +581,10 @@ HOOKS
|
||||||
`true`, redbean will close the connection without calling fork.
|
`true`, redbean will close the connection without calling fork.
|
||||||
|
|
||||||
OnLogLatency(reqtimeus:int, contimeus:int)
|
OnLogLatency(reqtimeus:int, contimeus:int)
|
||||||
If this function is defined it'll be called from the main process
|
If this function is defined it'll be called from the child worker
|
||||||
each time redbean completes handling of a request, but before the
|
process each time redbean completes the handling of a request, but
|
||||||
response is sent. The handler received the time (in µs) since the
|
before the response is sent. The handler receives the time (in µs)
|
||||||
request handling and connection handling started.
|
since the request handling and connection handling started.
|
||||||
|
|
||||||
OnProcessCreate(pid:int, ip:int, port:int, serverip:int, serverport:int)
|
OnProcessCreate(pid:int, ip:int, port:int, serverip:int, serverport:int)
|
||||||
If this function is defined it'll be called from the main process
|
If this function is defined it'll be called from the main process
|
||||||
|
|
Loading…
Reference in a new issue