mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-19 06:30:13 +08:00
Increase timeout for connecting via Mix standalone (#846)
* Increase timeout for connecting via Mix standalone I have hit this timeout when connecting via mix to a fairly large application. Increasing this fixes it for my use case. * Update lib/livebook/runtime/standalone_init.ex Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
parent
fa3132133e
commit
c972b195c5
1 changed files with 3 additions and 1 deletions
|
|
@ -105,7 +105,9 @@ defmodule Livebook.Runtime.StandaloneInit do
|
||||||
{:DOWN, ^port_ref, :port, _object, _reason} ->
|
{:DOWN, ^port_ref, :port, _object, _reason} ->
|
||||||
{:error, "Elixir process terminated unexpectedly"}
|
{:error, "Elixir process terminated unexpectedly"}
|
||||||
after
|
after
|
||||||
10_000 ->
|
# Use a longer timeout to account for longer child node startup,
|
||||||
|
# as may happen when starting with Mix.
|
||||||
|
40_000 ->
|
||||||
{:error, "connection timed out"}
|
{:error, "connection timed out"}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue