-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Netty unable to start (timeout) #9741
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
Comments
Note: This does not happen with Spring Boot |
@danielfernandez I'm not able to reproduce this and my environment looks pretty much the same as yours. I can see that the server starts up fine: @bclozel do you think this might be related to the change that went in as part of #9698? |
Maybe this is normal, given the timeout of 3 seconds. In my laptop, starting Netty with Spring Boot
This is a 2015 MacBook Pro with an i5 2.9Ghz and 16GB RAM so, maybe that |
Netty should start way faster than that on that machine. @danielfernandez I wonder if you're affected by this: https://thoeni.io/post/macos-sierra-java/ |
@wilkinsona exactly, thank you very much. That was it.
Sorry for the alarm, then. At least this ticket will serve as documentation for others having this in the future :). You can close this at your convenience. |
I can reproduce this issue when in debug model. I think it is useful to add timeout parameter from: so than we can set the value when @Override
public void start(**timeout**) throws WebServerException {
if (this.nettyContext == null) {
try {
this.nettyContext = this.reactorServer.start(this.handlerAdapter);
// change to
// this.nettyContext = this.reactorServer.start(this.handlerAdapter, timeout);
} |
@qintianjie That's an interesting suggestion. Could you please open a separate issue so that we can make sure that it's considered? |
@wilkinsona off course. I will do it now. |
None of my WebFlux-based projects using Spring Boot
2.0.0.BUILD-SNAPSHOT
is able to start. When executingmvn -U clean compile spring-boot:run
I'm always getting:Environment
This happens on (at least) macOS Sierra:
How to replicate
Simply go to http://start.spring.io, create an application with
Reactive Web
using Spring Boot2.0.0.BUILD-SNAPSHOT
. Try to start it and the above exception appears.The text was updated successfully, but these errors were encountered: