[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freediameter-help
Subject:    [Help] Client Application to Send diameter msg and receive the answer synchronously
From:       srinivasch.psl () gmail ! com (Srinivas Ch)
Date:       2012-09-07 14:58:14
Message-ID: CAGdgdEMYvSYtMy5t2MzK=Af_SqME5mVNj_KH0t0AJ0gwgeTC5Q () mail ! gmail ! com
[Download RAW message or body]

Hi Sebastian,

We have started testing the "fd_msg_send_timeout() " in our test
application;

Initial tests look positive

I will let you know the results of my testing once finished

Thanks,
Srinivas

On Thu, Aug 30, 2012 at 8:38 PM, Sebastien Decugis <
sdecugis at freediameter.net> wrote:

>  It should be fine to use fd_msg_send_timeout(), although I have not
> tested this as much as the default fd_msg_send. I am interested in your
> feedback :)
>
> Best regards,
> Sebastien
>
>
> Le 2012/08/30 7:43, Srinivas Ch a ?crit :
>
> Hi Sebastien,
>
> Thanks for your response
>
> Can we avoid the application thread getting blocked longer durations for
> callback thread using the API call "fd_msg_send_timeout()" instead of
> "fd_msg_send()" ?
>
> The application thread can retry sending the message if we do not get the
> response with in the timeout interval
> Let me please know if there are any other problems with using
> "fd_msg_send_timeout()"
>
> Thanks in advance
> Srinivas
>
>
>
>
> On Thu, Aug 23, 2012 at 11:49 PM, Sebastien Decugis <
> sdecugis at freediameter.net> wrote:
>
>>  Hi $riniva&,
>>
>> You'll have to take care yourself of the synchronization in that case,
>> such mechanism was not anticipated in freeDiameter.
>>
>> You might use a fd_fifo object for example if you want to post the answer
>> received back from the callback thread to your main thread.
>>
>> Note that there is no guarantee on the time the answer will take to come
>> back, so your thread might be blocked for quite a long time...
>>
>> Best regards,
>> Sebastien
>>
>>
>> Le 2012/08/23 14:34, Srinivas Ch a ?crit :
>>
>>  Hi,
>>
>> We are evaluating the freeDiamter stack as a client in our application
>>
>> We are trying to send the diameter message from our application thread
>> thru *fd_msg_send()* along with the callback function as a parameter.
>> Now our application thread should block till the answer is processed by
>> the callback function
>>
>> Is there any configuration or flag to be set to achieve the
>> synchronization b/w application thread and callback thread?
>>
>> Or should we take care of synchronizing the application thread and
>> callback thread in client application?
>>
>> Thanks
>> $riniva&
>>
>>
>>  _______________________________________________
>> Help mailing listHelp at freediameter.nethttp://lists.freediameter.net/cgi-bin/mailman/listinfo/help
>>
>>
>>
>
>
> --
> $riniva&
>
>
>


-- 
$riniva&
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freediameter.net/pipermail/help/attachments/20120907/537a0bc2/attachment.html>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic