Skip to content

Report a rare case where multipart may fail to parse #3635

Open
@innost

Description

@innost

We encountered an issue where an iOS client app uploads a large file using multipart requests. The file is split into 32MB chunks, and the client sends a series of multipart HTTP requests. Each request contains several form-data fields to transfer additional information to the server.

On the server side, we are using actix-web with the multipart extractor to handle these requests. However, during transmission, the multipart extractor occasionally fails to parse one of the form-data fields. This issue is rare and difficult to reproduce.

After capturing the traffic using a pcap file, we observed that in one instance, the multipart boundary sequence (--) was split across two TCP frames. It seems this caused the multipart extractor to fail during parsing.

If you want to review the content using Wireshark, rename boundary-problem.pcap.txt to boundary-problem.pcap.

Image

boudnary-problem.pcap.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions