Hi Tung,
Can you please share your thoughts.
I have responded to your queries in my previous email. Please let me know if 
you need any additional information from my end.

Thanks and regards,
Prakash
[Prakash ]  We are using iproute2 version-4.20.0-2+deb10u1 on amd64 platform. 
Our use case is very simple. We are creating/destroying a server socket based 
on some event using below code.
      // server socket creation
           int sd = socket(AF_TIPC, SOCK_SEQPACKET, 0);
      // Closing server socket
          close(sd);

      After closing the socket the file descriptor is freed but the tipc socket 
is still present in "tipc socket list" output.
      We have multiple applications in our system which are using tipc sockets. 
But we see this behaviour(stale tipc socket) only in one application.
      The only difference which I can notice is that this particular 
application  is spawning "strace" to monitor some other application. I am not 
sure but it looks like somehow running strace is affecting tipc socket
       cleanup.
>>> Perhaps you need to provide detailed reproduction steps like these:
1/ Output of “tipc socket list” before cleanup (to determine how many sockets 
are existing)
2/ strace command with detailed input parameters
3/ Do the cleanup
4/ Output of “tipc socket list” after cleanup

_______________________________________________
tipc-discussion mailing list
tipc-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tipc-discussion

Reply via email to