On Mon, Sep 03, 2018 at 01:44:19PM +0200, Michael Walle wrote: > > 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.
This text is good to have in the changelog. ^^^ > > 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? I'm not sure about that. I am concerned that that canceling might break working clients. > In > any case, if send() returns an ECONNREFUSED, the subscriber isn't there > anymore and new events should not be delivered to it anymore. So why not react to that specific error code? Thanks, Richard ------------------------------------------------------------------------------ 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