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 
> <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 (#19002): https://lists.fd.io/g/vpp-dev/message/19002
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]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to