Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e21142a
)
vcl: avoid reading fifo if vcl detached from vpp
49/43149/2
author
Florin Coras
<
[email protected]
>
Thu, 12 Jun 2025 04:45:12 +0000
(
00:45
-0400)
committer
Dave Barach
<
[email protected]
>
Thu, 12 Jun 2025 16:33:56 +0000
(16:33 +0000)
Type: fix
Change-Id: Ie357602140993244e81edb97fac48339a88ecbe8
Signed-off-by: Florin Coras <
[email protected]
>
src/vcl/vppcom.c
patch
|
blob
|
history
diff --git
a/src/vcl/vppcom.c
b/src/vcl/vppcom.c
index
9aff1e6
..
ee249b3
100644
(file)
--- a/
src/vcl/vppcom.c
+++ b/
src/vcl/vppcom.c
@@
-2126,6
+2126,7
@@
vppcom_session_read_internal (uint32_t session_handle, void *buf, int n,
rx_fifo = vcl_session_is_ct (s) ? s->ct_rx_fifo : s->rx_fifo;
/* If application closed, e.g., mt app, or no data return error */
if (s->session_state == VCL_STATE_CLOSED ||
+ (s->flags & VCL_SESSION_F_APP_CLOSING) ||
svm_fifo_is_empty_cons (rx_fifo))
return vcl_session_closed_error (s);
}