Skip to content

Fixes file collsion on supernode server#170

Merged
j-rafique merged 1 commit intomasterfrom
fix/tmpfile
Sep 12, 2025
Merged

Fixes file collsion on supernode server#170
j-rafique merged 1 commit intomasterfrom
fix/tmpfile

Conversation

@j-rafique
Copy link
Copy Markdown
Contributor

@j-rafique j-rafique commented Sep 12, 2025

  • Replace PID-based temp filename with os.CreateTemp to atomically create a unique file in the system temp dir (/tmp via os.TempDir()).
  • Fixes collisions across concurrent register/upload calls in the same process and avoids truncation/interleaved writes.

@mateeullahmalik mateeullahmalik self-requested a review September 12, 2025 17:13
@j-rafique j-rafique merged commit bab32bc into master Sep 12, 2025
7 checks passed
@mateeullahmalik mateeullahmalik deleted the fix/tmpfile branch December 15, 2025 08:03
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