From e1c0714d5827cd927961f3a687d9720e6e9aa802 Mon Sep 17 00:00:00 2001
From: dimitri staessens <dimitri.staessens@ugent.be>
Date: Wed, 5 Apr 2017 20:02:28 +0200
Subject: 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.
---
 src/ipcpd/ipcp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/ipcpd')

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();
-- 
cgit v1.2.3