anchor.diff:  			       "considering SSL connection from ~s:~p invalid : ~p", [Host, Port, Reason]),
   		    false;
   		{in, false} ->
  -		    logger:log(debug, "TCP connection: Could not get SSL subject information for connection from ~s:~p",
  -			       [Host, Port]),
  +		    logger:log(debug, "TCP connection: Could not get SSL subject information for connection "
  +			       "from ~s:~p : ~p", [Host, Port, Reason]),
   		    true;
   		{out, _RequireClientCert} ->
   		    logger:log(debug, "TCP connection: Could not get SSL subject information, "
  
positive.code: %%====================================================================
  
  %%--------------------------------------------------------------------
  %% Function: start_link/6
  %% Descrip.: Starts the server
  %% Returns : void()
  %%--------------------------------------------------------------------
  start_link(in, SocketModule, Proto, Socket, Local, Remote) ->
      gen_server:start_link(?MODULE, [in, SocketModule, Proto, Socket, Local, Remote, undefined], []).
  
  start_link(connect, Dst, GenServerFrom) when is_record(Dst, sipdst) ->
      gen_server:start(?MODULE, [connect, Dst, GenServerFrom], []).
  
  
negative.code: %% Descrip.: A request to close this connection.
  %% Returns : {stop, normal, NewState}
  %%--------------------------------------------------------------------
  handle_cast({close, FromPid}, State) ->
      %% XXX check that FromPid is someone sensible?
      Duration = util:timestamp() - State#state.starttime,
      {IP, Port} = State#state.remote,
      logger:log(debug, "TCP connection: Closing connection with ~p:~s:~p (duration: ~p seconds)",
  	       [State#state.proto, IP, Port, Duration]),
      SocketModule = State#state.socketmodule,
      Receiver = State#state.receiver,
      %% If the receiver tells us to close a SSL socket, the receiver will actually
      %% already have closed the connection (since it is 'controlling process').
      case {SocketModule, Receiver} of
  	{ssl, FromPid} ->
  	    ok;
  	_ ->
  	    case catch SocketModule:close(State#state.socket) of
  		ok -> ok;
  		E ->
  		    logger:log(error, "TCP connection: Closing socket ~p (using socketmodule ~p) "
  			       "failed : ~p", [SocketModule, E])
  	    end
      end,
      {stop, normal, State#state{socket=undefined}};
  
  %%--------------------------------------------------------------------
  