You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I want lua http client send file to lua server, i cannot find any example with lua-resty-http to send file , So I assembled the HTTP message myself and used the lua-resty-upload server to receive it. Similarly, an error is reported in form read, and err msg is sock is closed
Hi, I encountered an occasional problem in a http request, the following is the sample code
The value of err is "closed", then server return a message(by using
ngx.print
andngx.exit(ngx.HTTP_OK)
) and client can receive it. It seems that the socket was closed but client can still get the return of serverThe text was updated successfully, but these errors were encountered: