Skip to content

Conversation

@dsyer
Copy link
Contributor

@dsyer dsyer commented Dec 14, 2016

Not sure if there is a better way to wait for the server,
but this seems to work.

Thread.sleep(100L);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this return?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably throw an exception?

private final int port;

private volatile HttpServer server;
private volatile NettyContext server;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we change the variable name here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how stable it is. I don't mind either way. Just wanted something that works.
I figure we'll migrate to spring boot stack eventually anyway.

@markfisher markfisher self-assigned this Dec 16, 2016
@markfisher markfisher merged commit 7bcafab into spring-cloud:master Dec 19, 2016
@markfisher
Copy link
Contributor

LGTM; merged

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