-
Notifications
You must be signed in to change notification settings - Fork 646
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
Multiple remote servers - Connection reset by peer #3413
Comments
@Yosraaaa Please take a TCP dump. If the server closes the connection - check servers logs, it might be because of problems with the token. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
On the server-side, there's no evidence of our application's requests. We're using WebClient in a blocking manner. Could blocking threads be the culprit? We implemented the suggested WebClient configuration, and the issue is resolved, but we're unclear about the underlying cause.
|
@Yosraaaa Please provide TCP dump as I requested before. Also if you have logs from the time of failure, it will be helpful. |
this is log from the time of failure:
And attached TCP dump |
@Yosraaaa May be there is some misunderstanding but the attachment is a thread dump and not TCP dump |
Sorry, this is the tcp dump |
@violetagg The application wants to establish a connection with the server and stay 12 seconds every time and then we got connection reset by peer. I made keepalive to false and everything is fine now. Can you please have an explanation? |
@Yosraaaa In this TCP dump which is the port for the client and which for the remote server? I need to see the different Flags also (FIN/RST) |
Whether the connection will be kept alive or not, the process of establishing the connection to the remote is one and the same. |
TCPDumpForReactor.txt |
@Yosraaaa So it is as I said at the beginning that the remote peer sends RST (Connection reset by peer)
As you have the full TCP dump (with all HTTP headers/data from both sides), try to find why the server decided to close the connection. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open. |
I'm using WebClient to communicate with multiple remote servers. Most of them require basic authentication, but one specifically uses bearer token authentication. While communication with the servers using basic auth works fine, I encounter a 'Connection reset by peer' error when trying to access the server requiring bearer token. I haven't made any specific configurations for my WebClient. I'm working with Java 17 and Spring Boot 3.2.
The text was updated successfully, but these errors were encountered: