anchor.diff:  %% @end
   %%--------------------------------------------------------------------
   terminate(_Reason, #state{socket=Socket, remote=Remote}) ->
  +    io:format("~nTerminate... ~p~n~n", [_Reason]),
       case is_port(Socket) of
           true -> gen_tcp:close(Socket);
           false -> ok
  
positive.code:             % New Domain Request
              case is_port(Remote) of
                  true ->
                      io:format("New Request in an OLD Socket!!!~n", []),
                      gen_tcp:close(Remote);
                  false ->
                      ok
              end,
  
negative.code:             {ok, {Host, Port}};
          {ok, {_Sheme, _UserInfo, Host, Port, _Path, _Query, _Fragment}} ->
              {ok, {Host, Port}};
          {error, {malformed_url, _, HostWithPort}} ->
              % XXX workaround
              [Host, Port] = string:tokens(HostWithPort, ":"),
              {ok, {Host, list_to_integer(Port)}};
          {error, Reason} ->
              {error, Reason}
      end.
  