Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fdopen: only one connection to fd passing socket

Set the backlog of the socket used for passing the fd from the
privileged process to 0.
  • Loading branch information...
commit 5a4be10836cd0cfc32f8d88bfed64e03796284e1 1 parent 292a82a
@msantos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/procket.erl
View
2  src/procket.erl
@@ -274,7 +274,7 @@ fdopen(Path) when is_binary(Path), byte_size(Path) < ?UNIX_PATH_MAX ->
0:((unix_path_max()-Len)*8)
>>,
ok = bind(Socket, Sun),
- ok = listen(Socket, ?BACKLOG),
+ ok = listen(Socket, 0),
{ok, Socket}.
fdget(Socket) ->
Please sign in to comment.
Something went wrong with that request. Please try again.