Hi Vadim, To control the time vpp waits for a close from the app, add to startup.conf tcp { closewait-time N }, where N is time in seconds.
With respect to the epoll events, vcl only notifies the app of a close once and EPOLLHUP is returned whenever a peer closed its end of the session. Could you provide more details about your use case? Regards, Florin > On Mar 29, 2021, at 6:58 AM, Vadim Platonov <vadim.plato...@kaspersky.com> > wrote: > > Hi, > > Could you please clarify the name of startup.conf configuration parameter for > half-closed session timeout? > > Consider: > On peer FIN vcl should generate EPOLLRDHUP event towards the App > On full session close vcl should generate EPOLLRDHUP | EPOLLHUP event towards > the App > > Regards, > Vadim > > > From: Florin Coras <fcoras.li...@gmail.com> > Sent: Tuesday, March 23, 2021 5:59:49 PM > To: Vadim Platonov > Cc: vpp-dev@lists.fd.io > Subject: Re: [vpp-dev] vppcom epoll half-closed tcp session > > Hi Vadim, > > When peer initiates the closing of the connection (sends fin), session layer > notifies vcl about the event and consequently vcl generates an EPOLLHUP | > EPOLLRDHUP event towards the app, assuming app uses epoll. Outstanding data > can still be read and new data can be written. Are you looking for something > else? > > Note that TCP waits for a close from the app for 2 seconds by default but can > be startup.conf configured. If app does not close the session in time, tcp > cleans up the connection forcefully, otherwise, it keeps on trying to send > until all outstanding data is delivered or some error is hit. > > Regards, > Florin > >> On Mar 23, 2021, at 3:01 AM, Vadim Platonov via lists.fd.io >> <http://lists.fd.io/> <Vadim.Platonov=kaspersky....@lists.fd.io >> <mailto:Vadim.Platonov=kaspersky....@lists.fd.io>> wrote: >> >> Hi, >> >> Is there any way to know that vppcom epoll tcp session is half-closed? I >> mean the supporting of EPOLLRDHUP. >> >> Thanks, >> Vadim. >> >>
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19045): https://lists.fd.io/g/vpp-dev/message/19045 Mute This Topic: https://lists.fd.io/mt/81547144/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-