Tags: openresty/lua-nginx-module
Tags
tests: cross requests cosocket can only be use one time. tests: cross requests cosocket can only be use one time. cross request cosocket can not be reuese after connect().
bugfix: ngx.pipe waits until timeout because child process forgot to … …close pipe after dup2. After the fork, the pipe will be copied by dup2, so there are two fd for the same open file description. eg: 0, 11 for the same pipe file, 1, 13 for another pipe file. When running a short life process, the fd will be closed automatically when the process exits. When running a daemon process, the daemon may close fd 0, fd 1 and redirect them to /dev/null, but left the fd 11 and fd 13 opened forever. when ngx.pipe reads from the pipe, it will wait for reading until the pipe is closed or timeout. Because the daemon won't close the pipe, so ngx.pipe will wait for the timeout.
bugfix: ngx.pipe waits until timeout because child process forgot to … …close pipe after dup2. After the fork, the pipe will be copied by dup2, so there are two fd for the same open file description. eg: 0, 11 for the same pipe file, 1, 13 for another pipe file. When running a short life process, the fd will be closed automatically when the process exits. When running a daemon process, the daemon may close fd 0, fd 1 and redirect them to /dev/null, but left the fd 11 and fd 13 opened forever. when ngx.pipe reads from the pipe, it will wait for reading until the pipe is closed or timeout. Because the daemon won't close the pipe, so ngx.pipe will wait for the timeout.