fix(browser-transfer): release the vault slot of a capability put() or open() did not consume (01-07)
Only consume() removed a vault entry, so a refused, expired or aborted transfer held a maxActiveCapabilities slot until expiry and later issuance failed as LIMIT_EXCEEDED. The executor now revokes on every exit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c0b7ff1576
commit
b52ca8d69b
@@ -174,6 +174,12 @@ URL을 발급하면 안 된다.
|
||||
더 빠르면 그 기기에서는 capability가 만료로 보인다.
|
||||
- 만료/403은 임의 retry가 아니라 control plane의 새 capability 발급으로 복구한다.
|
||||
- ambiguous network failure 뒤 upload part를 새 bytes로 덮어쓰지 않는다.
|
||||
- 실행기는 resolve한 capability를 어떤 경로로 끝나든 vault에서 뺀다. 성공하면
|
||||
`consume()`이, 바인딩 거절·만료·replay claim 실패·digest 중단이나 불일치로
|
||||
끝나면 `revoke()`가 뺀다(`presigned-transfer-executor.ts`). 실행기에 닿기 전에
|
||||
버려진 capability(runtime 응답 검증 실패, part 실행기 사전 검사 실패, fail-fast로
|
||||
`put()` 전에 멈춘 형제 worker)는 만료까지 `maxActiveCapabilities` 자리를
|
||||
차지하고, 다음 `register()`가 만료 항목을 정리한다.
|
||||
- client-side single-use map은 UX 최적화일 뿐이다. cross-tab/replay authority는
|
||||
server 또는 composition-owned atomic consumer다.
|
||||
- signed response의 URL, query, raw header와 exception text를 관측성에 남기지 않는다.
|
||||
|
||||
Reference in New Issue
Block a user