This adds abstract socket support for Linux, making it possible
to do for example:
server {
listen unix:@abstract-socket;
location / {
content_by_lua_block {
ngx.say("hello from @abstract-socket")
}
}
location /abstract-socket {
content_by_lua_block {
local sock = ngx.socket.tcp()
local ok, err = sock:connect("unix:@abstract-socket")
if not ok then
return ngx.say("could not connect: ", err)
end
ok, err = sock:send("GET /\r\n");
if not ok then
return ngx.say("failed to send data on socket")
end
ngx.say(sock:receive())
}
}
}
echo -en "GET /abstract-socket\r\n" | \
socat abstract-connect:abstract-socket -
luajit to 2.1-20211210, lua-resty-websocket to 0.09rc1, lua-resty-redis to 0.30rc1, lua-resty-limit-traffic to 0.08rc1, lua-resty-mysql to 0.25rc1, set-misc-nginx-module to 0.33, encrypted-session-nginx-module to 0.09, lua-resty-string to 0.15, lua-cjson to 2.1.0.10rc1
The core dump may occur during initialization
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000441711 in ngx_event_process_init (cycle=0x1e93cc0) at src/event/ngx_event.c:807
801 i = cycle->connection_n;
802 next = NULL;
803
804 do {
805 i--;
806
807 c[i].data = next;
#1 0x000000000044abb9 in ngx_worker_process_init (cycle=cycle@entry=0x1e93cc0, worker=worker@entry=-1) at src/os/unix/ngx_process_cycle.c:968
This PR fixes issue #731
For every PR, an equivalent Travis job is triggered for ppc64le architecture.
Signed-off-by: Krishna Harsha Voora <krishvoor@in.ibm.com>