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

TomcatHttpServer的close方法没有关掉tomcat的端口 #8919

Closed
zrlw opened this issue Sep 25, 2021 · 0 comments
Closed

TomcatHttpServer的close方法没有关掉tomcat的端口 #8919

zrlw opened this issue Sep 25, 2021 · 0 comments

Comments

@zrlw
Copy link
Contributor

zrlw commented Sep 25, 2021

  • Dubbo version: 3.0 / master

TomcatHttpBinderTest测试方法shouldAbleHandleRequestForTomcatBinder的httpServer.close()语句设置断点,单步执行之后netstat -an看端口依旧在listening,原因是tomcat.stop方法并不会关闭端口,还需要在stop之后继续调destroy方法才能关闭端口。
TomcatHttpServer是org.apache.dubbo.remoting.http.HttpServer接口的实现类,其行为应和接口其他实现类比如JettyHttpServer一致,后者就是在close操作时完全关掉监听端口的。

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