Hi Chinmaya,

If you are using C++ headers (as I do), you can deal with it by adding
periodic control pings to VPP.
As far as I understand, vapi deals automatically with these control packets
from VPP. But if your code doesn't interact with VPP some time, these
control packets will be stored in a queue. And adding periodic control
pings would solve the problem.

On Fri, 31 Jul 2020 at 15:19, Dave Barach via lists.fd.io <dbarach=
cisco....@lists.fd.io> wrote:

> For whatever reason, your application didn’t process 3x memclnt_keepalive
> messages. Vpp sends one of these messages every 10 seconds.
>
>
>
> vpp# sh api messsage table
>
> ID   Name
>
> <snip>
>
> 21   memclnt_keepalive
>
> <snip>
>
>
>
> The code in question runs after the client sends a MEMCLNT_DELETE message.
> Purpose: make sure that we don’t leak message buffers...
>
>
>
>       /* drain the queue */
>
>       if (ntohs (rp->_vl_msg_id) != VL_API_MEMCLNT_DELETE_REPLY)
>
>       {
>
>         clib_warning ("queue drain: %d", ntohs (rp->_vl_msg_id));
>
>         vl_msg_api_handler ((void *) rp);
>
>         continue;
>
>       }
>
>
>
> HTH... Dave
>
>
>
> *From:* vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> *On Behalf Of *Chinmaya
> Aggarwal
> *Sent:* Friday, July 31, 2020 12:42 AM
> *To:* vpp-dev@lists.fd.io
> *Subject:* [vpp-dev] queue drain warning on calling vapi_disconnect()
>
>
>
> Hi,
> We are integrating VAPI in our application. We created connection to vapi
> using vapi_connect() and everything works fine for us. But during
> termination, when we call vapi_disconnect() we get the following warning in
> our logs multiple times :-
>
> vl_client_disconnect:323: queue drain: 21
>
> vl_client_disconnect:323: queue drain: 21
>
> vl_client_disconnect:323: queue drain: 21
>
> Can anyone suggest why this is happening?
>
> Thanks and Regards,
> Chinmaya Agarwal.
> 
>


-- 
Best regards
Stanislav Zaikin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#17122): https://lists.fd.io/g/vpp-dev/message/17122
Mute This Topic: https://lists.fd.io/mt/75901691/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to