Skip to content

Commit 2902441

Browse files
committed
Unix domain socket
1 parent ce66178 commit 2902441

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

protocol_doc/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,13 @@ because this shows an error on the server side.
236236

237237
## 3.3. Connecting through a Unix domain socket
238238

239+
The socket files are always put into the `/tmp` folder with the following naming
240+
convention: `/tmp/.s.monetdb.<PORT>`. So even in this case we need to know the port
241+
of the server, otherwise we would need to try all files with similar names.
242+
Since the default port is `50000`, the socket file will most likely be:
243+
`/tmp/.s.monetdb.50000`. The client must either be run under the same user as
244+
the server, or it needs to have read/write permissions to the socket file.
245+
239246
This case is the same as the TCP/IP connection, with a tiny difference at the very
240247
beginning. When connecting to a Unix domain socket, then the client has to first
241248
write a single byte (without any packet frame!) with value 0x30 or the chracter

0 commit comments

Comments
 (0)