anchor.diff: -%% @copyright 2007-2012 Zuse Institute Berlin
  +%% @copyright 2007-2012, 2014 Zuse Institute Berlin
   
   %   Licensed under the Apache License, Version 2.0 (the "License");
   %   you may not use this file except in compliance with the License.
  
positive.code:     case socket(State) =:= notconnected of
          true -> State;
          _    ->
              case timer:now_diff(erlang:now(), LastMsgSent) div 1000 of
                  N when N > Timeout ->
                      %% we timed out
                      ?TRACE("Closing idle connection: ~p~n", [State]),
  
negative.code:     end;
  
  on({web_debug_info, Requestor}, State) ->
      Now = os:timestamp(),
      LastMsgSent = last_msg_sent(State),
      SecondsAgo =
          case LastMsgSent of
  