summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_client.c
diff options
context:
space:
mode:
authorAlexander Mohr <alexander.m.mohr@mercedes-benz.com>2023-05-17 08:43:33 +0200
committerGitHub <noreply@github.com>2023-05-17 08:43:33 +0200
commit6005b92b34b3e3ffe43c59be544acd4688a3354c (patch)
tree29eb0bb87296c3f2b5fc82025ce326630a4eb25a /src/daemon/dlt_daemon_client.c
parentcfc2c86bfec130fb8a95ff0c2553d5c1dd1bd3c1 (diff)
downloadDLT-daemon-6005b92b34b3e3ffe43c59be544acd4688a3354c.tar.gz
dlt_user_shared: Add timeout to writev (#385)
This timeout is necessary to prevent blocking writev indefinitely. Without the timeout dlt-daemon, may block indefinitely when an app id is re-used very frequently. In that case dlt-daemon won't accept anymore new connections and further communication in any way is not possible anymore. Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
Diffstat (limited to 'src/daemon/dlt_daemon_client.c')
-rw-r--r--src/daemon/dlt_daemon_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c
index 9ebbd23..b256988 100644
--- a/src/daemon/dlt_daemon_client.c
+++ b/src/daemon/dlt_daemon_client.c
@@ -1622,7 +1622,7 @@ void dlt_daemon_control_callsw_cinjection(int sock,
/* write to FIFO */
DltReturnValue ret =
- dlt_user_log_out3(context->user_handle, &(userheader), sizeof(DltUserHeader),
+ dlt_user_log_out3_with_timeout(context->user_handle, &(userheader), sizeof(DltUserHeader),
&(usercontext), sizeof(DltUserControlMsgInjection),
userbuffer, (size_t) data_length_inject);