In MuleSoft, when calling an HTTP Request operation with streamResponse=true and a small responseBufferSize (e.g. 100), and the following system property is set to true, the request may appear to hang, showing no response and prolonged delays.
-Dmule.http.client.responseStreaming.nonBlockingWriter=true
With the non-blocking writer enabled (i.e. when the above system property is added), a small responseBufferSize causes frequent buffer saturation. Each time the buffer fills up, the write must wait before it can retry, and with a very small buffer these waits accumulate and stall stream processing.
There are following options to mitigate the issue.
(*) When option 1 is used, currently a buffer size ranging from tens of kilobytes to 1 megabyte is assigned, depending on the response. If you enable DEBUG logging for the package: "org.mule.service.http.impl.service.client.async.ResponseBodyDeferringAsyncHandler", you can see the following log in application.log when the default dynamic buffer size is used in the application:
DEBUG 2026-08-06 01:23:45,666 xxx org.mule.service.http.impl.service.client.async.ResponseBodyDeferringAsyncHandler: onHeadersReceived. No configured buffer size, resolving buffer size dynamically.
"-Dmule.http.client.responseStreaming.nonBlockingWriter=true" option is seen in the Knowledge Article: Whitepaper: A Systematic Approach to Resolving 502/504 Errors in High-Volume MuleSoft Architectures
005391036

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.