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:
Adam Lancaster 2022-02-08 14:22:38 +00:00 committed by GitHub
parent fa3132133e
commit c972b195c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,9 @@ defmodule Livebook.Runtime.StandaloneInit do
{:DOWN, ^port_ref, :port, _object, _reason} ->
{:error, "Elixir process terminated unexpectedly"}
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"}
end
end