http_server_rx_callback
http_server_rx_callback must return -1,
if session_rx_request fails.
@@ -355,8 +355,11 @@ http_server_rx_callback (stream_session_t * s)
{
http_server_main_t *hsm = &http_server_main;
builtin_http_server_args *args;
+ int rv;
- session_rx_request (s);
+ rv = session_rx_request (s);
+ if (rv)
+ return rv;
/* send the command to a new/recycled vlib process */
args = clib_mem_alloc (sizeof (*args));
@@ -385,8 +388,11 @@ http_server_rx_callback_static (stream_session_t * s)
http_server_main_t *hsm = &http_server_main;
u8 *request = 0;
int i;
+ int rv;
- session_rx_request (s);
+ rv = session_rx_request (s);
+ if (rv)
+ return rv;
request = hsm->rx_buf[s->thread_index];
if (vec_len (request) < 7)
