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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:640:    }       void disconnect()    {    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->con) destruct(q->con); +  if (q->con) {q->con->close(); destruct(q->con);}    connections_kept_n--;    if (!--connections_host_n[lookup])    m_delete(connections_host_n,lookup);    destruct(q);    destruct(this);    }       Query use()    {    Thread.MutexKey key = connection_cache_mux->lock(2);
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:763:    < maximum_total_connections &&    time_to_keep_unused_connections>0 &&    query->n_used < maximum_connection_reuse)    {    // clean up    query->set_callbacks(0,0);    KeptConnection(lookup,query);    freed_connection(lookup);    return;    } +  query->con->close(); // SSL.File needs to be explicitly closed before destruction    destruct(query->con);    }    destruct(query);    if (!--connections_host_n[lookup])    m_delete(connections_host_n,lookup);    freed_connection(lookup);   }      // ================================================================