In the example of stream3.c
, there is a pipe(fd)
command producing two file descriptors, fd[0]
and fd[1]
.
This script keeps on running by the wake_up(argv, fd[0], WK_FD)
command.
That means every server-push script uses 2 file descriptors.
Who can tell:
- What if there are 100,000 active and long lasting running scripts as above, or even more?
- Would it run out all file descriptor?
- How many stystem resouces are held for keeping the connections active?