Fix farmware bug #616
parent
4b042c9f76
commit
5e9160ae32
|
@ -1,6 +1,7 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
# 6.4.9
|
# 6.4.9
|
||||||
* Add feature to save logs to sdcard for debugging.
|
* Add feature to save logs to sdcard for debugging.
|
||||||
|
* Fix bug causing long running Farmwares to fail.
|
||||||
* Update Linux system layer.
|
* Update Linux system layer.
|
||||||
|
|
||||||
# 6.4.8
|
# 6.4.8
|
||||||
|
|
|
@ -57,8 +57,20 @@ defmodule Farmbot.BotState.Transport.HTTP do
|
||||||
public_key = body |> JOSE.JWK.from_pem
|
public_key = body |> JOSE.JWK.from_pem
|
||||||
# FIXME(Connor) The router should probably
|
# FIXME(Connor) The router should probably
|
||||||
# be put in an externally supervised module..
|
# be put in an externally supervised module..
|
||||||
opts = [port: @port, acceptors: 2, dispatch: [cowboy_dispatch()]]
|
protocol_options = [
|
||||||
case Plug.Adapters.Cowboy2.http Router, [], opts do
|
idle_timeout: :infinity,
|
||||||
|
shutdown_timeout: :infinity,
|
||||||
|
inactivity_timeout: :infinity,
|
||||||
|
shutdown_timeout: :infinity,
|
||||||
|
request_timeout: :infinity
|
||||||
|
]
|
||||||
|
opts = [
|
||||||
|
port: @port,
|
||||||
|
acceptors: 2,
|
||||||
|
dispatch: [cowboy_dispatch()],
|
||||||
|
protocol_options: protocol_options
|
||||||
|
]
|
||||||
|
case Plug.Adapters.Cowboy2.http(Router, [], opts) do
|
||||||
{:ok, web} ->
|
{:ok, web} ->
|
||||||
state = %{web: web, bot_state: nil, sockets: [], public_key: public_key}
|
state = %{web: web, bot_state: nil, sockets: [], public_key: public_key}
|
||||||
Process.link(state.web)
|
Process.link(state.web)
|
||||||
|
|
Loading…
Reference in New Issue