# Is there a way to add timeout on http connections

**URL:** <https://community.jenkins.io/t/is-there-a-way-to-add-timeout-on-http-connections/3771>\
**Category:** Using Jenkins\
**Tags:** question\
**Created:** [September 13, 2022, 8:48pm UTC](https://community.jenkins.io/t/is-there-a-way-to-add-timeout-on-http-connections/3771 "2022-09-13T20:48:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeyCarter](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mikeycarter/32/349_2.png) [@MikeyCarter](https://community.jenkins.io/u/MikeyCarter)\
**Post date:** [September 13, 2022, 8:48pm UTC](https://community.jenkins.io/t/is-there-a-way-to-add-timeout-on-http-connections/3771/1 "2022-09-13T20:48:35Z")

</div>

This question has basically two parts.

1. is there any way or a plugin to add a time-out to the http connections? We have cases where external services get stuck and we get Jenkins UI APIs hanging for an infinite amount of time. Adding a timeout to them would at least close them out over time

2. is there an extension point to hook into for these http connections? We have an LB in front of our Jenkins servers and some impatient users will click refresh if the page doesn’t load instantly and they end up with 20-30 http connections to their name actvie. Want to see about limiting these users and the number of connections they can have.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [September 13, 2022, 8:53pm UTC](https://community.jenkins.io/t/is-there-a-way-to-add-timeout-on-http-connections/3771/2 "2022-09-13T20:53:36Z")

</div>

What http connections is the jenkins ui using? Are you asking if you can add timeoutts to your jenkinsfile?

---

<div class="post-metadata">

**Author:** ![MikeyCarter](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mikeycarter/32/349_2.png) [@MikeyCarter](https://community.jenkins.io/u/MikeyCarter)\
**Post date:** [September 14, 2022, 4:13am UTC](https://community.jenkins.io/t/is-there-a-way-to-add-timeout-on-http-connections/3771/3 "2022-09-14T04:13:29Z")

</div>

Asking if I can add timeout to the jenkins ui. So people checking the logs or build pages or accessing the /api/json interface.

You know for someone who loads a 2G junit.xml file into a job and can’t wait for it to finish loading when they click “test results” and reloads the link 200 times.
