Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent locale data corruption #7

Merged
merged 1 commit into from Nov 6, 2011
Merged

Prevent locale data corruption #7

merged 1 commit into from Nov 6, 2011

Conversation

carlptr
Copy link

@carlptr carlptr commented Sep 29, 2011

Hi,

thanks for creating this cool module!

During using it I noticed that the locale data is reinitialized when the application crashed. I use supervisor to restart my node app automatically when files change. This leads to application crashes like

DEBUG: crashing child
DEBUG: Starting child process with 'node app.js'

quite often. Afterwards all my locale data was lost and a new locale file was created. After changing the write behaviour to create a temp file first and rename it then this issue did not occur any more.

I hope you find it useful.

Regards,
Patrick

corruption of locale data on an application crash. This can happen in
environments using supervisor to restart node automatically.
mashpie added a commit that referenced this pull request Nov 6, 2011
Prevent locale data corruption
@mashpie mashpie merged commit 77a1b45 into mashpie:master Nov 6, 2011
@mashpie
Copy link
Owner

mashpie commented Nov 6, 2011

Thanks for contributing :)

peecky pushed a commit to peecky/i18n-node that referenced this pull request Apr 7, 2014
Fix usage of res.locals in Express 3.x
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.

None yet

2 participants