summaryrefslogtreecommitdiff
path: root/src/gateway
diff options
context:
space:
mode:
authorFelix Herrmann <fherrmann@de.adit-jv.com>2020-06-03 16:46:40 +0200
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commitb185489eb4445bd1d5bca1f82c8e52af258ee69a (patch)
tree385c84272cc0452266f300722385bd3d96d2a224 /src/gateway
parent06b71ade4ad5f988ef18dcbec1e5e28b0ce57166 (diff)
downloadDLT-daemon-b185489eb4445bd1d5bca1f82c8e52af258ee69a.tar.gz
limit logspam in gateway on client overflow
update client buffer overflow counter in send function. Gather all overflow checks into dlt_daemon_client. Signed-off-by: Felix Herrmann <fherrmann@de.adit-jv.com> Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
Diffstat (limited to 'src/gateway')
-rw-r--r--src/gateway/dlt_gateway.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gateway/dlt_gateway.c b/src/gateway/dlt_gateway.c
index 7cad893..9c6578f 100644
--- a/src/gateway/dlt_gateway.c
+++ b/src/gateway/dlt_gateway.c
@@ -1416,7 +1416,7 @@ DltReturnValue dlt_gateway_process_passive_node_messages(DltDaemon *daemon,
return DLT_RETURN_ERROR;
}
- if (dlt_daemon_client_send(DLT_DAEMON_SEND_TO_ALL,
+ dlt_daemon_client_send(DLT_DAEMON_SEND_TO_ALL,
daemon,
daemon_local,
msg.headerbuffer,
@@ -1425,10 +1425,8 @@ DltReturnValue dlt_gateway_process_passive_node_messages(DltDaemon *daemon,
msg.headersize - sizeof(DltStorageHeader),
msg.databuffer,
msg.datasize,
- verbose) != DLT_DAEMON_ERROR_OK)
- dlt_log(LOG_WARNING, "Forward message to clients failed!\n");
- }
- else { /* otherwise remove this connection and do not connect again */
+ verbose);
+ } else { /* otherwise remove this connection and do not connect again */
dlt_vlog(LOG_WARNING,
"Received ECUid (%s) differs to configured ECUid(%s). "
"Discard this message.\n",