Lines Matching refs:match
141 * contains up to the first 256 chars of the line, it's enough to match with.
261 * This performs the specialized wildcard that knows about cookie path match
277 * Cookie path match is special, if we lookup on a path like /my/path,
278 * we must match on cookie paths for every dir level including /, so
279 * match on /, /my, and /my/path. But we must not match on /m or
280 * /my/pa etc. If we lookup on /, we must not match /my/path
283 * it is an explicit match
351 return 0; /* match */
391 * As we match the pieces of the wildcard,
421 lws_cache_match_t *match; /* current match if any */
436 if (ctx->match)
437 ctx->match->payload_size += size;
443 * There should be enough in buf to match or reject it... let's
445 * a match
448 ctx->match = NULL; /* new SOL means stop tracking payload len */
460 * ... it looks like a match then... create new match
464 ctx->match = lws_fi(&cache->cache.info.cx->fic, "cache_lookup_oom") ? NULL :
465 lws_malloc(sizeof(*ctx->match) + (unsigned int)tl + 1u,
467 if (!ctx->match)
471 ctx->match->payload_size = size;
472 ctx->match->tag_size = (size_t)tl;
473 ctx->match->expiry = expiry;
475 memset(&ctx->match->list, 0, sizeof(ctx->match->list));
476 memcpy(&ctx->match[1], tag, (size_t)tl + 1u);
477 lws_dll2_add_tail(&ctx->match->list, ctx->results_owner);
498 ctx.match = 0;
763 lwsl_cache("%s: no match\n", __func__);
767 /* it's a match */
769 lwsl_cache("%s: IS match\n", __func__);