anchor.diff:      end,
   
       %% Now test with option switched on.
  +    p("test with option explicitly switched on"),
       {ok, L1} = gen_tcp:listen(0, [{active, false}, {recbuf, 4096}]),
       {ok, Port1} = inet:port(L1),
  -    {ok, Client1} = gen_tcp:connect(localhost, Port1,
  -				  [{sndbuf, 4096},
  -				   {show_econnreset, true}]),
  +    Client1 =
  +        case gen_tcp:connect(localhost, Port1,
  +                             [{sndbuf, 4096}, {show_econnreset, true}]) of
  +            {ok, CSock1} ->
  +                CSock1;
  +            {error, eaddrnotavail = Reason1} ->
  +                skip(connect_failed_str(Reason1))
  +        end,
       {ok, S1} = gen_tcp:accept(L1),
       ok = gen_tcp:close(L1),
       ok = gen_tcp:send(Client1, Payload),
  
positive.code:     {error, econnreset} = gen_tcp:send(Client1, "Whatever").
  
  econnreset_after_async_send_active(Config) when is_list(Config) ->
      {OS, _} = os:type(),
      Payload = lists:duplicate(1024 * 1024, $.),
  
      %% First confirm everything works with option turned off.
      {ok, L} = gen_tcp:listen(0, [{active, false}, {recbuf, 4096}]),
      {ok, Port} = inet:port(L),
      {ok, Client} = gen_tcp:connect(localhost, Port, [{sndbuf, 4096}]),
      {ok, S} = gen_tcp:accept(L),
      ok = gen_tcp:close(L),
      ok = gen_tcp:send(Client, Payload),
  
negative.code: 		{tcp_error, Client1, econnreset} ->
  		    receive
  			{tcp_closed, Client1} ->
                              p("done"),
  			    ok;
  			Other3 ->
  			    ct:fail({unexpected3, Other3})
  