18.01.2023, 12:17
One more thing to try:
Code:
<?
require('apps')
sock = ngx.req.socket()
if sock then
sock:settimeout(5 * 1000)
data = sock:receive('*a')
log(data)
else
log('no request socket')
end