-
Notifications
You must be signed in to change notification settings - Fork 629
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
reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response #1221
Comments
The client needs to actively close the connection, in a certain idle time. |
gateway example,the same problem exists. from the phenomenon, for the tomcat server/nginx server timeout, it will take the initiative to disconnect, at this time the client will appear error, the client timeout setting does not take effect reactor-netty-server example,no problem |
@CantosSong Specifying
It happens that we have more than If you really need that kind of timeout ( In any way you have always to configure the connection pool max idle timeout in accordance to what you have as a configuration on the target server. |
I'll test it. maybe idle timeout needs to have a default value. |
@CantosSong We cannot provide a default that will satisfy every use case. There might be use cases that they don't want an idle timeout. |
understand. thanks |
@CantosSong I'm closing this issue. If the problem appears in Reactor Netty we can reopen it. |
version 0.9.10.RELEASE
tomcat
reactive
ab -c 100 -n1000 http://127.0.0.1:8888/test
ab -c 100 -n1000 http://127.0.0.1:8888/test1
sample
https://github.com/CantosSong/reactor-netty-demo-exception
The text was updated successfully, but these errors were encountered: