apache / apache/trafficserver

Large POST Bodies Cause Failure with Transform Plugin

Open
#11,556 1 comment 0 reactions 1 assignee Claimed by @shinrich View on GitHub
Bug HTTP Plugins Stale Transform
Dominant language
C++
Stars
2k
Forks
874
Avg merge
6d 15h
Merged PRs (30d)
46

Description

When we run traffic with small post bodies (e.g., 1024 bytes), the traffic passes through our transform plugin without issue.

When the post body is larger (e.g. 4096), the curl request fails and this message shows up in error.log "Request transformation failed to set content length".

The key difference between the working and failing case is that in the failing case, the post body is being read over multiple packets. In the working case, the post body and the request header are read together.

We first saw this in 9.1.3, but it reproduces in 10. I have a code change to make this work for me. I will post that, but I may be missing how to set the data argument for the transform.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.