Skip to content

If the Post the body is nil, will get unexpected error #331

@chensunny

Description

@chensunny

Summary

If the Post body is nil, expect the request to return an error (failfast).
But in fact, it will wait until the server timeout, because it only sends the request line with Post
The server will wait for the Body until the timeout.

Solution

where the request includes a body like Post, the body can not be nil

Other

When we use the kong.request.get_raw_body() to get the original body and use the resty client to send to another server.
If the body overflows client_body_buffer_size, it will return nil.

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