diff options
author | Isaac Boukris <iboukris@gmail.com> | 2017-01-09 00:51:08 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2017-01-13 16:25:20 +0100 |
commit | 1d786faee1046ff90e71252aeef4a997c3bf0d8d (patch) | |
tree | 325ebddb13f12be61a28062c2f06980e2a34754a /docs/cmdline-opts | |
parent | a7c73ae309c03bd84b28659421ac613e503565ce (diff) |
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
Diffstat (limited to 'docs/cmdline-opts')
-rw-r--r-- | docs/cmdline-opts/Makefile.am | 3 | ||||
-rw-r--r-- | docs/cmdline-opts/abstract-unix-socket.d | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/docs/cmdline-opts/Makefile.am b/docs/cmdline-opts/Makefile.am index 925f07fc1..4a10b9e5c 100644 --- a/docs/cmdline-opts/Makefile.am +++ b/docs/cmdline-opts/Makefile.am @@ -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 \ diff --git a/docs/cmdline-opts/abstract-unix-socket.d b/docs/cmdline-opts/abstract-unix-socket.d new file mode 100644 index 000000000..bb4467b67 --- /dev/null +++ b/docs/cmdline-opts/abstract-unix-socket.d @@ -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. |