[Openais] saEvtPublish try again

Mark Haverkamp markh at osdl.org
Wed Feb 16 07:36:31 PST 2005

On Tue, 2005-02-15 at 15:46 -0700, Steven Dake wrote:
> Mark,
> I have been working on defect-188 and looking through the library code. 
> I have one comment and suggest we change how saEvtPublish works.
> Today saEvtPublish will retry a publish command and return
> SA_AIS_ERR_TIMEOUT if it receives SA_AIS_ERR_TRYAGAIN from the executive
> too many times.
> Unfortunately this uses nanosleep which only has 1 msec resolution on
> 2.6, and 10msec resolution 2.4.
> I suggest we remove the retry logic and instead let saEvtPublish just
> return SA_ERR_TRYAGAIN and let the application deal with it.  If the
> application wants to drop the message it can, or it can choose to retry.
> This is the model by which flow control is expected to occur within the
> ais spec and what is used for checkpointing and other services.
> Your thoughts?
> -steve

Take a look.  I've removed the try again loop from the library and added
one to my publish test application.

Mark Haverkamp <markh at osdl.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: evt_publish.patch
Type: text/x-patch
Size: 3372 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20050216/28bd81d1/evt_publish-0001.bin

More information about the Openais mailing list