# \[CRITICAL\] Worker Timeout

**URL:** <https://community.fly.io/t/critical-worker-timeout/14078>\
**Category:** General\
**Tags:** login-only\
**Created:** [July 10, 2023, 9:19pm UTC](https://community.fly.io/t/critical-worker-timeout/14078 "2023-07-10T21:19:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thoroughProgrammer](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@thoroughProgrammer](https://community.fly.io/u/thoroughProgrammer)\
**Post date:** [July 10, 2023, 9:19pm UTC](https://community.fly.io/t/critical-worker-timeout/14078/1 "2023-07-10T21:19:42Z")

</div>

I get the below error:  
“[error] could not make HTTP request to instance: connection closed before message completed”  
How do I increase the worker timeout.

---

<div class="post-metadata">

**Author:** ![andie](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/andie/32/11768_2.png) [@andie](https://community.fly.io/u/andie)\
**Post date:** [July 11, 2023, 1:30pm UTC](https://community.fly.io/t/critical-worker-timeout/14078/2 "2023-07-11T13:30:37Z")

</div>

Hi @thoroughProgrammer

There’s a 60 second idle timeout for HTTP requests. You can’t change that value. You can keep the connection open by sending data continuously/more often; when anything at all is sent over the connection, the 60 second timer resets.

Some ways you can do this include [streaming content/responses](https://community.fly.io/t/worker-timeout/13660/2) or by polling or other methods (see [60 second timeout for HTTP server](https://community.fly.io/t/60-second-timeout-for-http-server/1243)).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [July 18, 2023, 1:31pm UTC](https://community.fly.io/t/critical-worker-timeout/14078/3 "2023-07-18T13:31:24Z")

</div>

Closed on July 18, 2023, 1:31pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
