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

handle empty server.ini #692

Closed
springmeyer opened this issue Aug 7, 2013 · 1 comment
Closed

handle empty server.ini #692

springmeyer opened this issue Aug 7, 2013 · 1 comment

Comments

@springmeyer
Copy link
Contributor

It appears that trying to read a server.ini that is blank will lead to high memory (> 5 GB) inf recursion. Seen on OS X via node-osrm (when trying to write tests for error states):

screen shot 2013-08-07 at 1 22 00 pm

@DennisOSRM
Copy link
Collaborator

I got this implemented now and it checks for all files in server.ini:

$ ./osrm-routed empty.ini 
[warn] starting up engines, compiled at Aug  9 2013, 14:37:00
[fatal error] exception: no ram index file name in server ini

Running some tests now that nothing breaks and will push shortly afterwards.

DennisOSRM pushed a commit that referenced this issue Aug 9, 2013
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

No branches or pull requests

2 participants