anchor.diff:  close_connection({tcp, Socket}) -> gen_tcp:close(Socket);
   close_connection({ssl, Socket}) -> ssl:close(Socket).
   
  -%%  ------------ FILE HANDELING  ----------------------------------------   
  +%%  ------------ FILE HANDLING  ----------------------------------------   
   send_file(#state{tls_upgrading_data_connection = {true, CTRL, _}} = State, Fd) ->
       {noreply, State#state{tls_upgrading_data_connection = {true, CTRL, ?MODULE, send_file, Fd}}};
   send_file(State, Fd) ->
       case file_read(Fd) of
  -	{ok, N, Bin} when N > 0->
  +	{ok, N, Bin} when N > 0 ->
   	    send_data_message(State, Bin),
   	    progress_report({binary, Bin}, State),
   	    send_file(State, Fd);
   	{ok, _, _} ->
  -	    file_close(Fd),
  +	    ok = file_close(Fd),
   	    close_data_connection(State),
   	    progress_report({transfer_size, 0}, State),
   	    activate_ctrl_connection(State),
  
positive.code:     activate_ctrl_connection(State),
      {noreply, State#state{client = From}};
  
  handle_call({_,{type, Type}}, From,  #state{chunk = false} 
  	    = State) ->  
      case Type of
  	ascii ->
  	    send_ctrl_message(State, mk_cmd("TYPE A", [])),
  
negative.code:     erlang:monitor(process, Client),
  
      %% Make sure inet is started
      _ = inet_db:start(),
      
      %% Where are we
      {ok, Dir} = file:get_cwd(),
  