mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-24 01:08:34 -07:00
res_pjsip: Deny requests when threadpool queue is backed up.
We have observed situations where the SIP threadpool may become deadlocked. However, because incoming traffic is still arriving, the SIP threadpool's queue can continue to grow, eventually running the system out of memory. This change makes it so that incoming traffic gets rejected with a 503 response if the queue is backed up too much. Change-Id: I4e736d48a2ba79fd1f8056c0dcd330e38e6a3816
This commit is contained in:
@@ -262,4 +262,10 @@ int ast_taskprocessor_is_task(struct ast_taskprocessor *tps);
|
||||
*/
|
||||
const char *ast_taskprocessor_name(struct ast_taskprocessor *tps);
|
||||
|
||||
/*!
|
||||
* \brief Return the current size of the taskprocessor queue
|
||||
* \since 13.7.0
|
||||
*/
|
||||
long ast_taskprocessor_size(struct ast_taskprocessor *tps);
|
||||
|
||||
#endif /* __AST_TASKPROCESSOR_H__ */
|
||||
|
||||
Reference in New Issue
Block a user