pike.git / lib / modules / Protocols.pmod / HTTP.pmod / Session.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:634:    q=_q;       call_out(disconnect,time_to_keep_unused_connections);    connection_cache[lookup]=    (connection_cache[lookup]||({}))+({this});    connections_kept_n++;    }       void disconnect()    { +  if (global::this) +  {    Thread.MutexKey key = connection_cache_mux->lock(2); -  +     connection_cache[lookup]-=({this});    if (!sizeof(connection_cache[lookup]))    m_delete(connection_cache,lookup);    remove_call_out(disconnect); // if called externally -  -  if (q && q->con) {q->con->close(); destruct(q->con);} +     connections_kept_n--;    if (!--connections_host_n[lookup])    m_delete(connections_host_n,lookup); -  +  } +  +  if (q && q->con) {q->con->close(); destruct(q->con);}    destruct(q);    destruct(this);    }       Query use()    {    Thread.MutexKey key = connection_cache_mux->lock(2);    connection_cache[lookup]-=({this});    if (!sizeof(connection_cache[lookup]))    m_delete(connection_cache,lookup);