Commit 70c5340
committed
gw: prewarm port_attrs cache at registration time
When a CVM registers without port_attrs (legacy CVM, or compose_hash
mismatch invalidated the cache), enqueue a background fetch right away
instead of waiting for the first proxied connection to discover the
miss. Reduces the window during which the fast path returns a wrong
`pp = false` because the cache hasn't been populated yet.
The fetcher dedupes in-flight ids, so this is safe to enqueue on every
registration that ends up without cached attrs.1 parent 3504c8a commit 70c5340
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
437 | 443 | | |
438 | 444 | | |
439 | 445 | | |
| |||
457 | 463 | | |
458 | 464 | | |
459 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
460 | 470 | | |
461 | 471 | | |
462 | 472 | | |
| |||
0 commit comments