diff options
author | Florin Coras <fcoras@cisco.com> | 2018-04-20 10:51:49 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2018-04-30 23:50:41 -0700 |
commit | c1a448b3ad16f4ae78527220420fe5c1e41a4ab9 (patch) | |
tree | bcccc20a32a8dfdd27c8eb32e20681ec30785c86 /src/vnet/session-apps/echo_server.c | |
parent | f4addbd03a21c6aa2a25d693cfd66988605fff36 (diff) |
tcp/session: debug improvements/fixes
Change-Id: I906e58b4f9827a79a6ab673f8fa2e03036c69820
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session-apps/echo_server.c')
-rw-r--r-- | src/vnet/session-apps/echo_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/session-apps/echo_server.c b/src/vnet/session-apps/echo_server.c index 85e6c299919..f34a4909a34 100644 --- a/src/vnet/session-apps/echo_server.c +++ b/src/vnet/session-apps/echo_server.c @@ -63,7 +63,6 @@ echo_server_session_accept_callback (stream_session_t * s) session_manager_get_vpp_event_queue (s->thread_index); s->session_state = SESSION_STATE_READY; esm->byte_index = 0; - vec_validate (esm->rx_retries[s->thread_index], s->session_index); esm->rx_retries[s->thread_index][s->session_index] = 0; return 0; } @@ -391,7 +390,9 @@ echo_server_create (vlib_main_t * vm, u8 * appns_id, u64 appns_flags, vec_validate (echo_server_main.vpp_queue, num_threads - 1); vec_validate (esm->rx_buf, num_threads - 1); vec_validate (esm->rx_retries, num_threads - 1); - + for (i = 0; i < vec_len (esm->rx_retries); i++) + vec_validate (esm->rx_retries[i], + pool_elts (session_manager_main.sessions[i])); esm->rcv_buffer_size = clib_max (esm->rcv_buffer_size, esm->fifo_size); for (i = 0; i < num_threads; i++) vec_validate (esm->rx_buf[i], esm->rcv_buffer_size); |