# \#timeout

**URL:** https://forum.elixirforum.com/tag/timeout/1927.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [How to change request timeout of Phoenix Endpoint with Bandit](https://forum.elixirforum.com/t/how-to-change-request-timeout-of-phoenix-endpoint-with-bandit/55007)

<div class="topic-metadata">

**Author:** [@RoyalMist](https://forum.elixirforum.com/u/RoyalMist)\
**Replies:** 4\
**Last updated:** [September 15, 2025, 9:12am UTC](https://forum.elixirforum.com/t/how-to-change-request-timeout-of-phoenix-endpoint-with-bandit/55007 "2025-09-15T09:12:00Z")

</div>

Hello :slight\_smile: I got a stupid question I cannot find a way to increase the default timeout of 60\_000 microseconds. A client of mine is currently uploading zips to my app and the size is currently too big for this…

---

## [Capturing timeouts with FLAME](https://forum.elixirforum.com/t/capturing-timeouts-with-flame/67223)

<div class="topic-metadata">

**Author:** [@barrelltechgh](https://forum.elixirforum.com/u/barrelltechgh)\
**Replies:** 0\
**Last updated:** [November 4, 2024, 7:15am UTC](https://forum.elixirforum.com/t/capturing-timeouts-with-flame/67223 "2024-11-04T07:15:33Z")

</div>

I’m using FLAME to run some code that has a tendency to fail (external libraries that are out of my control). When FLAME works, it works great; when it fails, it will normally work if I just rerun it. I’m having two mai…

---

## [How do Ecto Repo.checkout timeouts work in detail?](https://forum.elixirforum.com/t/how-do-ecto-repo-checkout-timeouts-work-in-detail/64700)

<div class="topic-metadata">

**Author:** [@Yegair](https://forum.elixirforum.com/u/Yegair)\
**Replies:** 2\
**Last updated:** [July 4, 2024, 9:13am UTC](https://forum.elixirforum.com/t/how-do-ecto-repo-checkout-timeouts-work-in-detail/64700 "2024-07-04T09:13:07Z")

</div>

Hello everyone, I am having trouble to fully understand how Repo.checkout works regarding DB connection timeouts. I did not find an explanation in the Docs (but maybe there is one, in that case I would be very thankful …

---

## [Task + DbTransaction DbConnection error](https://forum.elixirforum.com/t/task-dbtransaction-dbconnection-error/56633)

<div class="topic-metadata">

**Author:** [@Laetitia](https://forum.elixirforum.com/u/Laetitia)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 1:29pm UTC](https://forum.elixirforum.com/t/task-dbtransaction-dbconnection-error/56633 "2023-06-22T13:29:30Z")

</div>

Hi guys, I would like to know if anybody could help me. I have a genserver that calls a TaskSupervisor to start tasks like this: task = Task.Supervisor.async\_nolink( UiccProvisioningsSupervisor, …

---

## [Is it possible to replicate the net::ERR\_CONNECTION\_RESET error at the client-side when making an API call or using a WebSocket?](https://forum.elixirforum.com/t/is-it-possible-to-replicate-the-net-err-connection-reset-error-at-the-client-side-when-making-an-api-call-or-using-a-websocket/54714)

<div class="topic-metadata">

**Author:** [@aungmyooo2k17](https://forum.elixirforum.com/u/aungmyooo2k17)\
**Replies:** 2\
**Last updated:** [March 30, 2023, 3:38am UTC](https://forum.elixirforum.com/t/is-it-possible-to-replicate-the-net-err-connection-reset-error-at-the-client-side-when-making-an-api-call-or-using-a-websocket/54714 "2023-03-30T03:38:38Z")

</div>

I developed a live view application using Elixir, specifically a Phoenix application, and have been running it in the browser for an extended period of time. Occasionally, I encounter an error, such as net::ERR\_CONNECTIO…

---

## [Updating values in loop and generate Puppeteer Pdf in loop without timeout error](https://forum.elixirforum.com/t/updating-values-in-loop-and-generate-puppeteer-pdf-in-loop-without-timeout-error/51971)

<div class="topic-metadata">

**Author:** [@sagarmounika](https://forum.elixirforum.com/u/sagarmounika)\
**Replies:** 2\
**Last updated:** [November 23, 2022, 1:04pm UTC](https://forum.elixirforum.com/t/updating-values-in-loop-and-generate-puppeteer-pdf-in-loop-without-timeout-error/51971 "2022-11-23T13:04:50Z")

</div>

Hi, I have a list, where I have to generate a pdf for each value in the list and keep track of which pdf is getting generated to display on UI (using socket assign). I have two issues: It’s working fine for some tim…

---

## [Can I automatically set infinite db timeout when in ExUnit trace mode?](https://forum.elixirforum.com/t/can-i-automatically-set-infinite-db-timeout-when-in-exunit-trace-mode/51882)

<div class="topic-metadata">

**Author:** [@jtompl](https://forum.elixirforum.com/u/jtompl)\
**Replies:** 1\
**Last updated:** [November 18, 2022, 9:43am UTC](https://forum.elixirforum.com/t/can-i-automatically-set-infinite-db-timeout-when-in-exunit-trace-mode/51882 "2022-11-18T09:43:44Z")

</div>

When debugging with IEx.pry(), I got used to that I have to run my tests with a special command iex -S mix test --trace ... (otherwise, pry won’t even start, or test cases will timeout too soon). Unfortunately, that’s n…

---

## [Socket disconnecting after 60 sec without sending data](https://forum.elixirforum.com/t/socket-disconnecting-after-60-sec-without-sending-data/39804)

<div class="topic-metadata">

**Author:** [@cedric](https://forum.elixirforum.com/u/cedric)\
**Replies:** 7\
**Last updated:** [July 6, 2022, 5:51pm UTC](https://forum.elixirforum.com/t/socket-disconnecting-after-60-sec-without-sending-data/39804 "2022-07-06T17:51:13Z")

</div>

Hi, My socket are disconnected every 60 sec when they’re not sending data. I tried to change the idle\_timeout to :infinity: (debugging purpose) but nothing changes :confused: Here is my config: Someone has an ide…

---

## [Multiple Ecto transactions give timeout](https://forum.elixirforum.com/t/multiple-ecto-transactions-give-timeout/44386)

<div class="topic-metadata">

**Author:** [@hudsonbay](https://forum.elixirforum.com/u/hudsonbay)\
**Replies:** 11\
**Last updated:** [December 14, 2021, 11:46pm UTC](https://forum.elixirforum.com/t/multiple-ecto-transactions-give-timeout/44386 "2021-12-14T23:46:13Z")

</div>

I’m in a situation where I have to insert 9000 registries in bulk into the database with Ecto in PostgreSQL. I already have a dedicated function for inserting an array of elements BulkOperations.bulk\_create(MyStruct, li…

---

## [How to gracefully timeout a web request](https://forum.elixirforum.com/t/how-to-gracefully-timeout-a-web-request/36213)

<div class="topic-metadata">

**Author:** [@jmurphyweb](https://forum.elixirforum.com/u/jmurphyweb)\
**Replies:** 1\
**Last updated:** [December 14, 2020, 4:23pm UTC](https://forum.elixirforum.com/t/how-to-gracefully-timeout-a-web-request/36213 "2020-12-14T16:23:41Z")

</div>

Hi all, I have an intermittent bug in production which I am trying to track down which causes requests to take a really long time: Heroku times out all requests after 30 seconds, meaning the response never get’s sent …

---

## [Genserver timeout error on :no\_reply response](https://forum.elixirforum.com/t/genserver-timeout-error-on-no-reply-response/29980)

<div class="topic-metadata">

**Author:** [@shijith.k](https://forum.elixirforum.com/u/shijith.k)\
**Replies:** 5\
**Last updated:** [March 22, 2020, 9:10pm UTC](https://forum.elixirforum.com/t/genserver-timeout-error-on-no-reply-response/29980 "2020-03-22T21:10:05Z")

</div>

I have GenServer setup in a module. One of the handle\_call/3 returns {:no\_reply, state}. Every time after executing the call a timeout error raises. Can someone tell me what I am doing wrong here? This is the first time…

---

## [Case to use or not use :infinity as timeout for calls](https://forum.elixirforum.com/t/case-to-use-or-not-use-infinity-as-timeout-for-calls/29949)

<div class="topic-metadata">

**Author:** [@sezaru](https://forum.elixirforum.com/u/sezaru)\
**Replies:** 14\
**Last updated:** [March 20, 2020, 11:30pm UTC](https://forum.elixirforum.com/t/case-to-use-or-not-use-infinity-as-timeout-for-calls/29949 "2020-03-20T23:30:37Z")

</div>

Hello, Setting the timeout value in my GenServer calls was always something that I found uncomfortable, it seemed to me that 5 seconds default was kinda a “random” number and I was not sure what number I needed to use. …

---

## [GenServer timeout](https://forum.elixirforum.com/t/genserver-timeout/26142)

<div class="topic-metadata">

**Author:** [@DaAnalyst](https://forum.elixirforum.com/u/DaAnalyst)\
**Replies:** 8\
**Last updated:** [October 18, 2019, 5:30pm UTC](https://forum.elixirforum.com/t/genserver-timeout/26142 "2019-10-18T17:30:51Z")

</div>

I use GenServer (restart: :temporary) for a module that manages some state and handles access to it. Its init function and its handle\_\* functions return the same timeout value. The GenServer-based state-managing processe…
