Skip to content

Make TLS (re)loading to be explicitly sync#249

Merged
kriszyp merged 1 commit intomainfrom
sync-TLS-loading
Mar 18, 2026
Merged

Make TLS (re)loading to be explicitly sync#249
kriszyp merged 1 commit intomainfrom
sync-TLS-loading

Conversation

@kriszyp
Copy link
Copy Markdown
Member

@kriszyp kriszyp commented Mar 18, 2026

The change/fix to yield asynchronously on search query (https://github.com/HarperFast/harper/blob/main/resources/search.ts#L349) had ramifications for making downstream consumers actually execute across multiple macro event turns. This led to a regression in using createTLSSelector for replication, specifically it was possible to access the secureContexts while it was being loaded; after the map was cleared, but before values were added to it. It would be possible to continue to do this async, and replace the map at the end, but I didn't want to continue to fight the async and this seems simpler, more deterministic, and really the TLS reloading should be fast enough that sync is probably appropraite.

@kriszyp kriszyp requested a review from a team as a code owner March 18, 2026 16:29
@kriszyp kriszyp changed the title Make TLS (re)loading to be explicitly async Make TLS (re)loading to be explicitly sync Mar 18, 2026
@kriszyp kriszyp merged commit 32d10a8 into main Mar 18, 2026
23 of 25 checks passed
@kriszyp kriszyp deleted the sync-TLS-loading branch March 18, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants