diff options
author | Linus Nordberg <linus@sunet.se> | 2019-06-27 15:25:03 +0200 |
---|---|---|
committer | Linus Nordberg <linus@sunet.se> | 2019-06-27 15:25:37 +0200 |
commit | 7d7b6d49615a23ceabaf5de31ec82223379681ea (patch) | |
tree | 2fe86f41e4a6cda1cd9c7ad2e8f5ae8cab374953 /p11p-daemon/src/p11p_server_sup.erl | |
parent | 5afd25d12004294b2f4c418deeec088dcc645f69 (diff) |
add a genserver for handling remotes and start forwarding data
Current status is that p11tool successfully performs a --list-tokens
request over p11p, yay! Only once though -- the next request
hangs. heh.
Also, the timeout logic is wrong and should move to the server,
measuring the time it takes to get a full p11 response. This reqires
parsing of the p11-kit rpc protocol, which we need anyway.
Diffstat (limited to 'p11p-daemon/src/p11p_server_sup.erl')
-rw-r--r-- | p11p-daemon/src/p11p_server_sup.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p11p-daemon/src/p11p_server_sup.erl b/p11p-daemon/src/p11p_server_sup.erl index b38ea51..7ffa3d6 100644 --- a/p11p-daemon/src/p11p_server_sup.erl +++ b/p11p-daemon/src/p11p_server_sup.erl @@ -30,7 +30,7 @@ start_servers([Name|T]) -> file:delete(Path), % TODO: consider flow control through {active, once}, don't forget activating after read! {ok, Socket} = gen_tcp:listen(0, [{ifaddr, {local, Path}}, binary]), - spawn_link(?MODULE, start_server, [[Path, Socket]]), + spawn_link(?MODULE, start_server, [[Name, Path, Socket]]), start_servers(T). cleanup([]) -> |