Am 2018-08-18 15:50, schrieb Richard Cochran:
On Tue, Jul 31, 2018 at 10:46:50AM +0200, Michael Walle wrote:
If the uds transport returns an error, the subscriber is automatically
removed.

Can you please explain:
  a) the problem, and

Sending event messages to sockets which are already disconnected, eg. a client connecting over UDS, subscribing to an event and disconnects. At the moment, the subscriber is only removed when it times out because there was no recent TLV_SUBSCRIBE_EVENTS_NP.

  b) how this resolves it

I wonder whether there might be a transient error, in which case it
would make sense to keep the subscription.

Since UDS are reliable there shouldn't be transient errors, should it? In any case, if send() returns an ECONNREFUSED, the subscriber isn't there anymore and new events should not be delivered to it anymore.

-michael

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to