Manage socket_fs socket lifetime via handles

Socket_fs sockets are now created each time a 'new_socket' control file
is opened, not each time a 'new_socket' file is read. When a handle on a
'new_socket' file is closed the socket and its socket files are
destroyed. The accept control file on a listening socket reads "1" or
reads nothing to indicate a client connection is queued. Client sockets
are accepted by opening an 'accept_socket' file in the listen socket
directory. This file behaves like the aforementioned 'new_socket' file.

Ref #2707
This commit is contained in:
Emery Hemingway
2018-03-14 14:28:17 +01:00
committed by Christian Helmuth
parent 0b980073c1
commit 401ba6e7fd
2 changed files with 528 additions and 320 deletions

File diff suppressed because it is too large Load Diff