anchor.diff:              %% that the server is ready to upgrade by calling this function, else the upgrade
               %% succeeds or does not succeed depending on timing.
               inet:setopts(TCPSocket, [{active, false}]),
  -            {ok, TLSSocket} = ssl:ssl_accept(TCPSocket, TLSOpts),
  +            {ok, TLSSocket} = ?ssl_accept(TCPSocket, TLSOpts),
               %% restore the expected active once setting
               ssl:setopts(TLSSocket, [{active, once}]),
               #connection{socket = TLSSocket, transport = ssl, control = ssl, monotonic = false};
  
positive.code: -type connection() :: #connection{}.
  -export_type([connection/0]).
  
  %% @doc Wraps a TCP socket with the appropriate information for
  %% transceiving on and controlling the socket later. If TLS/SSL is
  %% enabled, this performs the socket upgrade/negotiation before
  
negative.code:         false ->
              %% No messages in queue; transmit.
              true
      end.
  