|
From: | FEICHTER Christoph |
Subject: | Re: [osip-dev] TCP transport_error with SUBSCRIBE |
Date: | Wed, 20 Sep 2017 08:18:43 +0000 |
hi aymeric, the event
EXOSIP_SUBSCRIPTION_NOANSWER is really not used in the moment. I guess a solution using this event would be better. My first attempt with simply removing the whole block for SUBSCRIBE request in cb_transport_error has a potential risk. In my use-case (TCP transport timeout) I do receive the second callback
cb_xixt_kill_transaction right after cb_transport_error. So I let
cb_xixt_kill_transaction do the cleanup and everything is fine. But what about other transport errors ? If cb_xixt_kill_transaction is not called, we would have a resource-leak ! can you tell me, if cb_xixt_kill_transaction
is always called – even after a timeout –
for cleaning up hanging subscribe transactions ? If not, I will try to find a solution using the event
EXOSIP_SUBSCRIPTION_NOANSWER and leave the cleanup in cb_transport_error as it is. br, christoph From: Aymeric Moizard [mailto:address@hidden
2017-09-15 5:51 GMT-07:00 FEICHTER Christoph <address@hidden>:
Hi Christoph,
Unfortunatly, I had no time to try. (and I have no more active app that use SUBSCRIBE...)
The current code doesn't use any more EXOSIP_SUBSCRIPTION_NOANSWER. (I'm not sure I ever did) I guess your proposal is the simplest way to implement the no answer. Tks Aymeric
--
|
[Prev in Thread] | Current Thread | [Next in Thread] |