On fork, cl listeners are not ready, i.e., listen and fifos are
pending, so read ready crashes.
Type: fix
Change-Id: I965bbd7f72706831767615564a88f5dbad38b11e
Signed-off-by: Florin Coras <[email protected]>
session_dgram_pre_hdr_t ph;
u32 max_deq;
+ /* CL listener that's not yet ready */
+ if (vcl_session_is_cl (s) && !s->rx_fifo)
+ return 0;
+
max_deq = svm_fifo_max_dequeue_cons (s->rx_fifo);
if (max_deq <= SESSION_CONN_HDR_LEN)
return 0;
if (s->is_dgram)
{
+ /* CL listener that's not yet ready */
+ if (vcl_session_is_cl (s) && !s->rx_fifo)
+ return 0;
+
if (svm_fifo_max_dequeue_cons (s->rx_fifo) <= SESSION_CONN_HDR_LEN)
return 0;