summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-06-16 17:35:30 +0200
committerdimitri staessens <[email protected]>2016-06-16 17:51:23 +0200
commit9513708ddf4eedc03c41a8d07f3dcb6e48f23c0c (patch)
tree8ab671400559eaf5b9bc22deec9ed7370e17635d /src/ipcpd/shim-udp
parent4aa4e30c5b4f89da1bab5022424c55f5d8b3f580 (diff)
downloadouroboros-9513708ddf4eedc03c41a8d07f3dcb6e48f23c0c.tar.gz
ouroboros-9513708ddf4eedc03c41a8d07f3dcb6e48f23c0c.zip
irmd: clean up stale pending flows
Adds a thread that cleans up stale pending flows. Compile time option IRMD_FLOW_TIMEOUT allows setting the timeout period. Default timeout is 5 seconds. The thread wakes up 20 times per period to check the flows.
Diffstat (limited to 'src/ipcpd/shim-udp')
-rw-r--r--src/ipcpd/shim-udp/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index f583a998..186f0ebc 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -910,7 +910,7 @@ static int ipcp_udp_bootstrap(struct dif_config * conf)
SO_REUSEADDR,
&enable,
sizeof(int)) < 0)
- LOG_WARN("Setsockopt(SO_REUSEADDR) failed.");
+ LOG_WARN("Failed to set SO_REUSEADDR.");
memset((char *) &s_saddr, 0, sizeof(s_saddr));
shim_data(_ipcp)->s_saddr.sin_family = AF_INET;