Skip to content

Got "closed" error after call read method of resty.upload #57

@GeraltXLi

Description

@GeraltXLi

Hi, I encountered an occasional problem in a http request, the following is the sample code

local upload = require "resty.upload"
local form, err = upload.new(4 * 1024)

****

form:set_timeout(5000)

local typ, res, err = form:read()

The value of err is "closed", then server return a message(by using ngx.print and ngx.exit(ngx.HTTP_OK)) and client can receive it. It seems that the socket was closed but client can still get the return of server

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