diff options
author | Christian Muck <q270506@QMUC300924.(none)> | 2011-09-12 13:17:52 +0200 |
---|---|---|
committer | Christian Muck <q270506@QMUC300924.(none)> | 2011-09-12 13:17:52 +0200 |
commit | 27b7b432a9de1f9d96aee6a16c6fe04288bacc1d (patch) | |
tree | 9bab2b61a897a14f9fe1942fd05874bbc787c1ef /src/daemon | |
parent | 0e31784368654143b61ce469fa1b5235abfdfc2c (diff) | |
download | DLT-daemon-27b7b432a9de1f9d96aee6a16c6fe04288bacc1d.tar.gz |
Revert "[GSW-43] Flow Control for sending huge amount of data over DLT. partialy fixed"
This reverts commit 7554585a80ca2a8ebdcd5d1f1693ffe8e39b571d.
Diffstat (limited to 'src/daemon')
-rwxr-xr-x | src/daemon/dlt_daemon_common.c | 3 | ||||
-rwxr-xr-x | src/daemon/dlt_daemon_common.h | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c index b48e936..a4d5dba 100755 --- a/src/daemon/dlt_daemon_common.c +++ b/src/daemon/dlt_daemon_common.c @@ -178,8 +178,7 @@ int dlt_daemon_init(DltDaemon *daemon,const char *runtime_directory, int verbose dlt_set_id(daemon->ecuid,""); /* initialize ring buffer for client connection */ - - if (dlt_ringbuffer_init(&(daemon->client_ringbuffer), DLT_DAEMON_RINGBUFFER_SIZE,DLT_DAEMON_RINGBUFFER_INCREASE_SIZE,DLT_DAEMON_RINGBUFFER_MAXIMUM_SIZE)==-1) + if (dlt_ringbuffer_init(&(daemon->client_ringbuffer), DLT_DAEMON_RINGBUFFER_SIZE)==-1) { return -1; } diff --git a/src/daemon/dlt_daemon_common.h b/src/daemon/dlt_daemon_common.h index 39907e8..1d16a85 100755 --- a/src/daemon/dlt_daemon_common.h +++ b/src/daemon/dlt_daemon_common.h @@ -97,10 +97,6 @@ extern "C" { #define DLT_DAEMON_RINGBUFFER_SIZE 100000 /**< Ring buffer size for storing log messages while no client is connected */
-#define DLT_DAEMON_RINGBUFFER_INCREASE_SIZE DLT_DAEMON_RINGBUFFER_SIZE
-
-#define DLT_DAEMON_RINGBUFFER_MAXIMUM_SIZE 100*DLT_DAEMON_RINGBUFFER_INCREASE_SIZE
-
#define DLT_DAEMON_STORE_TO_BUFFER -2 /**< Constant value to identify the command "store to buffer" */
/* Use a semaphore or mutex from your OS to prevent concurrent access to the DLT buffer. */
|