Skip to content

fix(soap): persist and share certificate PEMs across workers - #3

Open
marmore-ixcsoft wants to merge 2 commits into
masterfrom
IPERP-21119-QMPDNOMHUS-MASTER
Open

fix(soap): persist and share certificate PEMs across workers#3
marmore-ixcsoft wants to merge 2 commits into
masterfrom
IPERP-21119-QMPDNOMHUS-MASTER

Conversation

@marmore-ixcsoft

Copy link
Copy Markdown

Fixes intermittent SSL failures when scaling SEFAZ transmission with
multiple workers, caused by the write-use-delete-rewrite cycle on
every document.

Deterministic file names (branch id + certificate hash)
Write-once, skips saving if PEM already exists
Atomic write (temp file + rename) to avoid concurrent reads of a
partially written PEM
__destruct() no longer deletes deterministic PEMs
45min cleanup sweep skips deterministic PEMs
Directory permission 0700, PEM files 0600
Refs: IPERP-21117

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.

2 participants