Skip to content

Commit 85d6601

Browse files
committed
docs: Clarify max-body-size applies to requests and responses
Updated the max-body-size annotation description to clarify that it applies to: - Incoming HTTP/gRPC requests to the Dapr sidecar - Actor operation responses - Binding component responses (added in v1.16.2) This clarification helps users understand that the annotation controls both request and response body sizes, not just incoming requests. Fixes: dapr/components-contrib#4076 Related: dapr/dapr#9151
1 parent 9f8bfb6 commit 85d6601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daprdocs/content/en/reference/arguments-annotations-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This table is meant to help users understand the equivalent options for running
2222
| `--dapr-grpc-port` | `--dapr-grpc-port` | | `dapr.io/grpc-port` | Sets the Dapr API gRPC port (default `50001`); all cluster services must use the same port for communication |
2323
| `--dapr-http-port` | `--dapr-http-port` | | not supported | HTTP port for the Dapr API to listen on (default `3500`) |
2424
| `--dapr-http-max-request-size` | `--dapr-http-max-request-size` | | `dapr.io/http-max-request-size` | **Deprecated** in favor of `--max-body-size`. Inreasing the request max body size to handle large file uploads using http and grpc protocols. Default is `4` MB |
25-
| `--max-body-size` | not supported | | `dapr.io/max-body-size` | Inreasing the request max body size to handle large file uploads using http and grpc protocols. Set the value using size units (e.g., `16Mi` for 16MB). The default is `4Mi` |
25+
| `--max-body-size` | not supported | | `dapr.io/max-body-size` | Maximum size for HTTP/gRPC request and response bodies. Applies to incoming requests to the Dapr sidecar, actor operations, and binding component responses. Useful for handling large file uploads/downloads. Set the value using size units (e.g., `16Mi` for 16MB). The default is `4Mi`. Note: Binding component response size enforcement added in Dapr v1.16.2. |
2626
| `--dapr-http-read-buffer-size` | `--dapr-http-read-buffer-size` | | `dapr.io/http-read-buffer-size` | **Deprecated** in favor of `--read-buffer-size`. Increasing max size of http header read buffer in KB to to support larger header values, for example `16` to support headers up to 16KB . Default is `16` for 16KB |
2727
| `--read-buffer-size` | not supported | | `dapr.io/read-buffer-size` | Increasing max size of http header read buffer in KB to to support larger header values. Set the value using size units, for example `32Ki` will support headers up to 32KB . Default is `4Ki` for 4KB |
2828
| not supported | `--image` | | `dapr.io/sidecar-image` | Dapr sidecar image. Default is daprio/daprd:latest. The Dapr sidecar uses this image instead of the latest default image. Use this when building your own custom image of Dapr and or [using an alternative stable Dapr image]({{% ref "support-release-policy.md#build-variations" %}}) |

0 commit comments

Comments
 (0)