Files
ports/www/lua-stream-nginx-module/files/patch-src_ngx__stream__lua__time.c
T
Jochen Neumeister c08f758786 www/{nginx,nginx-devel,freenginx}: use lua-stream-nginx-module port
Replace the embedded LUASTREAM GH_TUPLE handling with a
BUILD_DEPENDS on www/lua-stream-nginx-module and use the
module sources from the dedicated port during the build.

Add freenginx compatibility patches for lua-stream-nginx-module.

Also update lua-stream-nginx-module to version 0.0.17.

PR:	294426
Sponsored by:	Netzkommune GmbH
2026-05-25 19:08:15 +02:00

13 lines
344 B
C

--- src/ngx_stream_lua_time.c.orig
+++ src/ngx_stream_lua_time.c
@@ -36,7 +36,11 @@ ngx_stream_lua_ffi_now(void)
double
ngx_stream_lua_ffi_req_start_time(ngx_stream_lua_request_t *r)
{
+#if defined(freenginx)
+ return r->session->start_time / 1000.0;
+#else
return r->session->start_sec + r->session->start_msec / 1000.0;
+#endif
}