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