diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-05 20:02:28 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-06 10:36:24 +0200 |
commit | e1c0714d5827cd927961f3a687d9720e6e9aa802 (patch) | |
tree | d8e793cffbe829d64855eaa5a429b90ebe3dc3a4 /src/ipcpd | |
parent | c6ad4f96f8bb2f1ee749e92308e7173523ddd0b8 (diff) | |
download | ouroboros-e1c0714d5827cd927961f3a687d9720e6e9aa802.tar.gz ouroboros-e1c0714d5827cd927961f3a687d9720e6e9aa802.zip |
lib, irmd: Implement flow allocation timeout
Setting the timeouts on flow_alloc and flow_accept will now work. This
makes some changes to the UNIX sockets used for management
communication between the APs, IRMd and IPCPs.
Diffstat (limited to 'src/ipcpd')
-rw-r--r-- | src/ipcpd/ipcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index 4b7da030..f08e4ce7 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -296,7 +296,7 @@ static void * ipcp_main_loop(void * o) buffer.len = ipcp_msg__get_packed_size(&ret_msg); if (buffer.len == 0) { - log_err("Failed to send reply message"); + log_err("Failed to pack reply message"); close(lsockfd); thread_inc(); continue; @@ -304,6 +304,7 @@ static void * ipcp_main_loop(void * o) buffer.data = malloc(buffer.len); if (buffer.data == NULL) { + log_err("Failed to create reply buffer."); close(lsockfd); thread_inc(); continue; @@ -312,6 +313,7 @@ static void * ipcp_main_loop(void * o) ipcp_msg__pack(&ret_msg, buffer.data); if (write(lsockfd, buffer.data, buffer.len) == -1) { + log_err("Failed to send reply message"); free(buffer.data); close(lsockfd); thread_inc(); |