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

SocketIO server start failed at port: 10001! #698

Open
ChristinRay opened this issue Aug 16, 2019 · 1 comment
Open

SocketIO server start failed at port: 10001! #698

ChristinRay opened this issue Aug 16, 2019 · 1 comment

Comments

@ChristinRay
Copy link

socketIOServer.start() failed,please tell me why????
[ERROR] 2019-08-16 10:09:32 [nioEventLoopGroup-5-1] c.c.socketio.SocketIOServer - SocketIO server start failed at port: 10001!
[WARN ] 2019-08-16 10:09:32 [main] o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nettySocketServiceImpl': Invocation of init method failed; nested exception is java.nio.channels.UnresolvedAddressException

@lovebing
Copy link
Contributor

lovebing commented Aug 28, 2019

Sometimes, if the process exits suddenly(killed), some tcp connections may remain FIN_WAIT1 state for a few minutes, so the port is unavailable to be bound. you can modify system config to reduce the remaining time.

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