You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using Spring Cloud Gateway (which uses Reactor Netty) and something really strange happens. Sometimes, when Netty reads the response, the content is corrupted. The expected response content is:
HTTP Status
HTTP Headers
Body
But after getting the HTTP headers, the HTTP status and the headers are read again, followed by the last piece of the response body.
This is the response content in the normal case:
Sometimes, I get the response below:
Comparing the content it seems the the input stream is reset before reading the body:
Note that at the end of the response content there is the final part of the response body.
Could it be a Netty issue?
Do you ever experienced a similar issue?
Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm using Spring Cloud Gateway (which uses Reactor Netty) and something really strange happens. Sometimes, when Netty reads the response, the content is corrupted. The expected response content is:
But after getting the HTTP headers, the HTTP status and the headers are read again, followed by the last piece of the response body.
This is the response content in the normal case:
Sometimes, I get the response below:
Comparing the content it seems the the input stream is reset before reading the body:
Note that at the end of the response content there is the final part of the response body.
Could it be a Netty issue?
Do you ever experienced a similar issue?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions