c08f758786
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
13 lines
344 B
C
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
|
|
}
|