aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-07-02 01:30:51 -0700
committerDamjan Marion <dmarion@me.com>2018-07-03 09:17:33 +0000
commit208daa1adb8069083b67a36e9f16ac27373fa5bf (patch)
tree4d973bbc680b13019af1d971ba07d7290ce92247 /src/vnet/session/session.c
parent926b564d650700213f40b03394fdb12e45496246 (diff)
tcp: update snd_una_max for retranmsits
Change-Id: I0573d0aff39581bba96e610228a10ae923a8ca06 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r--src/vnet/session/session.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index e486c2b0326..7131f51cdda 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -459,9 +459,7 @@ session_enqueue_notify (stream_session_t * s, u8 block)
return 0;
}
- /* Get session's server */
app = application_get_if_valid (s->app_index);
-
if (PREDICT_FALSE (app == 0))
{
clib_warning ("invalid s->app_index = %d", s->app_index);
@@ -509,7 +507,10 @@ session_dequeue_notify (stream_session_t * s)
application_t *app;
svm_queue_t *q;
- app = application_get (s->app_index);
+ app = application_get_if_valid (s->app_index);
+ if (PREDICT_FALSE (!app))
+ return -1;
+
if (application_is_builtin (app))
return 0;