Re: [reSIProcate] resiprocate crash or dead lock when first subscribe has expires set to 0
Looking at the dispatch method in ServerSubscription I can see that DUM will send a 200 to the Subscribe request and a Notify with the subscription state as terminated when receiving a Subscribe request with an Expires of 0. Looks like you trying to do the same thing in the onNewSubscription callback is causing issues.
I see a couple ways to tackle this:
1. Use your workaround by not sending a notify in on onNewSubscription if Expires is 0 - knowing that DUM will do it for you.
2. If you need a body in the notify that goes out in this case - look for Expires of 0 in onNewSubscription and try using update - then doing nothing with the returned message. I think this will cause the body to go out in the notify message generated by DUM.
3. We could add a check in the code in dispatch for the Expires = 0 case to check if the application case called accept or sent a notify - then avoid having DUM do it as well.
I don't believe anything has changed since 1.8.11 for this, so this problem would also exist in SVN head.
Regards,
Scott