-
- Downloads
res_pjsip: Move URI validation to use time.
In a realtime based system with a limited number of threadpool threads it is possible for a deadlock to occur. This happens when permanent endpoint state is updated, which will cause database queries to be done. These queries may result in URI validation being done which is done synchronously using a PJSIP thread. If all PJSIP threads are in use processing traffic they themselves may be blocked waiting to get the permanent endpoint container lock when identifying an endpoint. This change moves URI validation to occur at use time instead of configuration time. While this comes at a cost of not seeing a problem until you use it it does solve the underlying deadlock problem. ASTERISK-25486 #close Change-Id: I2d7d167af987d23b3e8199e4a68f3359eba4c76a
Showing
- include/asterisk/res_pjsip.h 5 additions, 0 deletionsinclude/asterisk/res_pjsip.h
- res/res_pjsip.c 16 additions, 2 deletionsres/res_pjsip.c
- res/res_pjsip/location.c 0 additions, 32 deletionsres/res_pjsip/location.c
- res/res_pjsip/pjsip_configuration.c 1 addition, 29 deletionsres/res_pjsip/pjsip_configuration.c
Loading
Please register or sign in to comment