anchor.diff:      erlang:link(PortFD),
   
       State = #{
  -        server => self(), port_fd => PortFD, status => running, id => {node(), N},
  +        server => self(), port_fd => PortFD, status => init, id => {node(), N},
           gw_port => GWPort, gw_admin_port => GWAdminPort, db_hostname => Hostname, db_port => Port,
           start_time => erlang:system_time(milli_seconds), parent => Parent
       },
  
positive.code: -spec gateway_loop(State :: #{atom() => term()}) -> no_return().
  gateway_loop(#{port_fd := PortFD, id := {_, N} = ID, db_hostname := Hostname, db_port := Port, gw_port := GWPort,
      start_time := ST, parent := Parent} = State) ->
      try port_command(PortFD, <<"ping">>) of
          true ->
              try couchbeam:server_info(catch couchbeam:server_connection("localhost", GWPort)) of
  
negative.code:     WaitForStateFun(timer:seconds(2)),
      WaitForConnectionFun(timer:seconds(2)),
  
      gateway_loop(State#{status => running}).
  
  
  %%--------------------------------------------------------------------
  