Exemplo n.º 1
0
static int hook_cleanup(cc_module *module)
{
	debug(207, 1)("(mod_m3u8_prefetch) ->	hook_cleanup:\n");
	eventDelete(m3u8Event, NULL);
	if(NULL != request_param_pool)
		memPoolDestroy(request_param_pool);
	if(NULL != mod_config_pool)
		memPoolDestroy(mod_config_pool);
	return 0;
}
Exemplo n.º 2
0
static int hook_cleanup(cc_module *module)
{                       
	debug(98, 1)("(mod_header) ->     hook_cleanup:\n");
	if(NULL != header_info_pool)
		memPoolDestroy(header_info_pool);
	if(NULL != action_part_pool)
		memPoolDestroy(action_part_pool);
	if(NULL != mod_config_pool)
		memPoolDestroy(mod_config_pool);
	return 0;
}  
static int func_sys_cleanup()
{
	debug(115, 1)("(mod_customized_server_side_error_page) ->     hook_cleanup:---:)\n");
	if(NULL != error_page_private_data_pool)
		memPoolDestroy(error_page_private_data_pool);
	if(NULL != timeout_pool)
		memPoolDestroy(timeout_pool);
	if(NULL != text_mb_pool)
		memPoolDestroy(text_mb_pool);
	if(NULL != mod_config_pool)
		memPoolDestroy(mod_config_pool);
	return 0;
}
Exemplo n.º 4
0
static int hook_cleanup(cc_module *module)
{                       
	debug(95, 1)("(mod_tos) ->     hook_cleanup:\n");
	if(NULL != mod_config_pool)
		memPoolDestroy(mod_config_pool);
	return 0;       
}  
Exemplo n.º 5
0
static int hook_cleanup(cc_module *module)
{                       
	debug(107, 1)("(mod_modify_s2o_header_name) ->     hook_cleanup:\n");
	if(mod_config_pool)
		memPoolDestroy(mod_config_pool);
	return 0;       
}       
Exemplo n.º 6
0
static int hook_cleanup(cc_module *module)
{                       
	debug(97, 1)("(mod->url_simplify) -> hook_cleanup:\n");
	if(NULL != mod_config_pool)
		memPoolDestroy(mod_config_pool);
	return 0;       
}
Exemplo n.º 7
0
static int hook_cleanup(cc_module *module)
{
	debug(120, 1)("(mod_url_rewrite) -> hook_cleanup:\n");
	if(NULL != mod_config_pool)
		memPoolDestroy(mod_config_pool);
	return 0;
}
Exemplo n.º 8
0
static void
authDigestRequestShutdown(void)
{
    /* No requests should be in progress when we get here */
    if (digest_request_pool) {
	assert(memPoolInUseCount(digest_request_pool) == 0);
	memPoolDestroy(digest_request_pool);
	digest_request_pool = NULL;
    }
}
Exemplo n.º 9
0
static void
authNegotiateDone(void)
{
    debug(29, 2) ("authNegotiateDone: shutting down Negotiate authentication.\n");
    if (negotiateauthenticators)
	helperStatefulShutdown(negotiateauthenticators);
    authnegotiate_initialised = 0;
    if (!shutting_down)
	return;
    if (negotiateauthenticators)
	helperStatefulFree(negotiateauthenticators);
    negotiateauthenticators = NULL;
    if (negotiate_request_pool) {
	memPoolDestroy(negotiate_request_pool);
	negotiate_request_pool = NULL;
    }
    if (negotiate_user_pool) {
	memPoolDestroy(negotiate_user_pool);
	negotiate_user_pool = NULL;
    }
    debug(29, 2) ("authNegotiateDone: Negotiate authentication Shutdown.\n");
}
Exemplo n.º 10
0
static void
authBasicDone(void)
{
    if (basicauthenticators)
	helperShutdown(basicauthenticators);
    authbasic_initialised = 0;
    if (!shutting_down)
	return;
    if (basicauthenticators)
	helperFree(basicauthenticators);
    basicauthenticators = NULL;
    if (basic_data_pool) {
	memPoolDestroy(basic_data_pool);
	basic_data_pool = NULL;
    }
    debug(29, 2) ("authBasicDone: Basic authentication Shutdown.\n");
}
Exemplo n.º 11
0
static void
authDigestUserShutdown(void)
{
    /*
     * Future work: the auth framework could flush it's cache 
     */
    auth_user_hash_pointer *usernamehash;
    auth_user_t *auth_user;
    hash_first(proxy_auth_username_cache);
    while ((usernamehash = ((auth_user_hash_pointer *) hash_next(proxy_auth_username_cache)))) {
	auth_user = usernamehash->auth_user;
	if (authscheme_list[auth_user->auth_module - 1].typestr &&
	    strcmp(authscheme_list[auth_user->auth_module - 1].typestr, "digest") == 0)
	    /* it's digest */
	    authenticateAuthUserUnlock(auth_user);
    }
    if (digest_user_pool) {
	assert(memPoolInUseCount(digest_user_pool) == 0);
	memPoolDestroy(digest_user_pool);
	digest_user_pool = NULL;
    }
}
Exemplo n.º 12
0
static void
authenticateDigestNonceShutdown(void)
{
    /* 
     * We empty the cache of any nonces left in there.
     */
    digest_nonce_h *nonce;
    if (digest_nonce_cache) {
	debug(29, 2) ("authenticateDigestNonceShutdown: Shutting down nonce cache \n");
	hash_first(digest_nonce_cache);
	while ((nonce = ((digest_nonce_h *) hash_next(digest_nonce_cache)))) {
	    assert(nonce->flags.incache);
	    authDigestNoncePurge(nonce);
	}
    }
    if (digest_nonce_pool) {
	assert(memPoolInUseCount(digest_nonce_pool) == 0);
	memPoolDestroy(digest_nonce_pool);
	digest_nonce_pool = NULL;
    }
    debug(29, 2) ("authenticateDigestNonceShutdown: Nonce cache shutdown\n");
}
void
aioDone(void)
{
    memPoolDestroy(squidaio_ctrl_pool);
    initialised = 0;
}
Exemplo n.º 14
0
static int hook_cleanup(cc_module *module)
{
	debug(190, 1)("(mod_no_cache_if_http_code) ->     hook_cleanup:\n");
	memPoolDestroy(mod_config_pool);
	return 0;
}