Skip to content

Fixes file collsion on supernode server - #170

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

j-rafique merged 1 commit into
masterfrom
fix/tmpfile

Conversation

@j-rafique

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

Copy link
Copy Markdown
Contributor
  • 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