Should we implement timeout mechanisms in rest endpoints of custom jira plugins?

While monitoring some Jira, we observed that a request to one of the custom jira plugin endpoints hanged like 8 days. Is there a default timeout mechanism for rest endpoints in jira or should we implement it manually to prevent similar problems occuring again?
Thanks in advance for the help.