# Incorrect doc for maxRequestBodyBytes?

**URL:** <https://community.traefik.io/t/incorrect-doc-for-maxrequestbodybytes/25418>\
**Category:** Traefik v3 (latest)\
**Tags:** middleware\
**Created:** [December 5, 2024, 6:42am UTC](https://community.traefik.io/t/incorrect-doc-for-maxrequestbodybytes/25418 "2024-12-05T06:42:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrypdm](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/mrypdm/32/9651_2.png) [@mrypdm](https://community.traefik.io/u/mrypdm)\
**Post date:** [December 5, 2024, 6:42am UTC](https://community.traefik.io/t/incorrect-doc-for-maxrequestbodybytes/25418/1 "2024-12-05T06:42:01Z")

</div>

We sending large POST request (~100 MB) through Traefik v3.1.2 and it is fails with `EOF occurred in violation of protocol` on client side

According to docs ([Traefik Buffering Documentation - Traefik](https://doc.traefik.io/traefik/middlewares/http/buffering/#maxrequestbodybytes)) `maxRequestBodyBytes=0` by default which means that there is no limitation for body size.  
But if we add `maxRequestBodyBytes=0` explicitly, error does not happening.

Also, if we add `memRequestBodyBytes=115343360` (110 MB), which is by default 1 MB, the error does not occur either.

Also, if we send requests smaller than 1 MB, there is no error, but for larger sizes the error appears.

There is a suspicion that `maxRequestBodyBytes` is actually not 0 by default, but is equal to or slightly greater than `memRequestBodyBytes`

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [December 5, 2024, 7:05am UTC](https://community.traefik.io/t/incorrect-doc-for-maxrequestbodybytes/25418/2 "2024-12-05T07:05:09Z")

</div>

I think a lot of limits have been set lately to prevent some attacks, maybe the doc hasn’t been updated accordingly.

You could create an issue or even a pull request on [Traefik Github](https://github.com/traefik/traefik).
