wso2 / micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
194 stars 206 forks source link

CPU Spinning when there is an RST packet while serving the response [MI 4.x.x] #3363

Closed Sumudu-Sahan closed 2 weeks ago

Sumudu-Sahan commented 2 weeks ago

When the backend sends an RST packet while writing the response to the opened HTTP connection thread, the Sender I/O dispatcher thread will spin, and hence, the high CPU behavior will be observed.

Reproducing Steps

curl --location 'https://localhost:8253/test' -H 'Content-Type: application/xml' -d '<?xml version="1.0"?>
<catalog>
</catalog>' -kv

Maven_BE.zip