example starts and terminates directly #266

Closed
dagnelies opened this Issue Dec 9, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@dagnelies

Hi,

I just picked the example provided on the front page, and it correctly shows:
Running! Point your browers to http://localhost:8080/
But it terminates right after.

Anything I'm doing wrong?

@jpeyper

This comment has been minimized.

Show comment
Hide comment
@jpeyper

jpeyper Dec 9, 2015

I had this same issue, I changed the start command to

server.start(NanoHTTPD.SOCKET_READ_TIMEOUT, false);

so it is not running in a daemon thread and it now stays running.

jpeyper commented Dec 9, 2015

I had this same issue, I changed the start command to

server.start(NanoHTTPD.SOCKET_READ_TIMEOUT, false);

so it is not running in a daemon thread and it now stays running.

@dagnelies

This comment has been minimized.

Show comment
Hide comment
@dagnelies

dagnelies Dec 10, 2015

ok, thanks. It'd be nice to make this the default.

I'll leave the ticket open for now if you don't mind, it might help others.

ok, thanks. It'd be nice to make this the default.

I'll leave the ticket open for now if you don't mind, it might help others.

@jpeyper

This comment has been minimized.

Show comment
Hide comment
@jpeyper

jpeyper Dec 10, 2015

Yes, or update the docs on the main page.

If you get to it, the ssl example is also out of date. The makeSecure method takes a second parameters (use null if you want the default sslProtocols).

jpeyper commented Dec 10, 2015

Yes, or update the docs on the main page.

If you get to it, the ssl example is also out of date. The makeSecure method takes a second parameters (use null if you want the default sslProtocols).

ritchieGitHub added a commit that referenced this issue Dec 18, 2015

@ritchieGitHub ritchieGitHub added this to the 2.3.0 milestone Dec 18, 2015

@ritchieGitHub ritchieGitHub self-assigned this Dec 18, 2015

@ritchieGitHub

This comment has been minimized.

Show comment
Hide comment
@ritchieGitHub

ritchieGitHub Dec 18, 2015

Member

documentation ist updated, thanks for pointing this out!

Member

ritchieGitHub commented Dec 18, 2015

documentation ist updated, thanks for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment