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 /lib/urldata.h | |
parent | a7c73ae309c03bd84b28659421ac613e503565ce (diff) | |
download | curl-1d786faee1046ff90e71252aeef4a997c3bf0d8d.tar.gz |
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 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 0271d266b..96c0aca19 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1133,6 +1133,7 @@ struct connectdata { #ifdef USE_UNIX_SOCKETS char *unix_domain_socket; + bool abstract_unix_socket; #endif }; @@ -1754,6 +1755,8 @@ struct UserDefined { int stream_weight; struct Curl_http2_dep *stream_dependents; + + bool abstract_unix_socket; }; struct Names { |