diff options
-rw-r--r-- | src/plugins/hs_apps/vcl/vcl_test_server.c | 2 | ||||
-rw-r--r-- | src/vnet/session/application_local.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/hs_apps/vcl/vcl_test_server.c b/src/plugins/hs_apps/vcl/vcl_test_server.c index 852c96863ce..798fd72b481 100644 --- a/src/plugins/hs_apps/vcl/vcl_test_server.c +++ b/src/plugins/hs_apps/vcl/vcl_test_server.c @@ -387,7 +387,7 @@ vcl_test_server_process_opts (vcl_test_server_main_t * vsm, int argc, vsm->cfg.proto = VPPCOM_PROTO_TCP; opterr = 0; - while ((c = getopt (argc, argv, "6DLsw:p:")) != -1) + while ((c = getopt (argc, argv, "6DLsw:hp:")) != -1) switch (c) { case '6': diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c index dc777562d00..9b0136f95dc 100644 --- a/src/vnet/session/application_local.c +++ b/src/vnet/session/application_local.c @@ -120,7 +120,6 @@ ct_session_connect_notify (session_t * ss) cs = session_alloc (thread_index); ss = session_get (ss_index, thread_index); cs->session_type = ss->session_type; - cs->connection_index = sct->c_c_index; cs->listener_handle = SESSION_INVALID_HANDLE; cs->session_state = SESSION_STATE_CONNECTING; cs->app_wrk_index = client_wrk->wrk_index; @@ -211,6 +210,8 @@ ct_init_accepted_session (app_worker_t * server_wrk, sm_index = segment_manager_index (sm); ls->rx_fifo->master_session_index = ls->session_index; ls->tx_fifo->master_session_index = ls->session_index; + ls->rx_fifo->master_thread_index = ls->thread_index; + ls->tx_fifo->master_thread_index = ls->thread_index; ls->rx_fifo->segment_manager = sm_index; ls->tx_fifo->segment_manager = sm_index; ls->rx_fifo->segment_index = seg_index; |