mirror of
https://github.com/curl/curl.git
synced 2026-07-27 23:53:06 +03:00
unix_socket: add support for abstract unix domain socket
In addition to unix domain sockets, Linux also supports an abstract namespace which is independent of the filesystem. In order to support it, add new CURLOPT_ABSTRACT_UNIX_SOCKET option which uses the same storage as CURLOPT_UNIX_SOCKET_PATH internally, along with a flag to specify abstract socket. On non-supporting platforms, the abstract address will be interpreted as an empty string and fail gracefully. Also add new --abstract-unix-socket tool parameter. Signed-off-by: Isaac Boukris <iboukris@gmail.com> Reported-by: Chungtsun Li (typeless) Reviewed-by: Daniel Stenberg Reviewed-by: Peter Wu Closes #1197 Fixes #1061
This commit is contained in:
parent
a7c73ae309
commit
1d786faee1
17 changed files with 139 additions and 19 deletions
|
|
@ -22,7 +22,8 @@
|
|||
|
||||
AUTOMAKE_OPTIONS = foreign no-dependencies
|
||||
|
||||
DPAGES = anyauth.d append.d basic.d cacert.d capath.d cert.d \
|
||||
DPAGES = abstract-unix-socket.d anyauth.d \
|
||||
append.d basic.d cacert.d capath.d cert.d \
|
||||
cert-status.d cert-type.d ciphers.d compressed.d config.d \
|
||||
connect-timeout.d connect-to.d continue-at.d cookie.d cookie-jar.d \
|
||||
create-dirs.d crlf.d crlfile.d data-ascii.d data-binary.d data.d \
|
||||
|
|
|
|||
9
docs/cmdline-opts/abstract-unix-socket.d
Normal file
9
docs/cmdline-opts/abstract-unix-socket.d
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Long: abstract-unix-socket
|
||||
Arg: <path>
|
||||
Help: Connect through an abstract Unix domain socket
|
||||
Added: 7.53.0
|
||||
Protocols: HTTP
|
||||
---
|
||||
Connect through an abstract Unix domain socket, instead of using the network.
|
||||
Note: netstat shows the path of an abstract socket prefixed with '@', however
|
||||
the <path> argument should not have this leading character.
|
||||
Loading…
Add table
Add a link
Reference in a new issue