zhangweidongyyl commented on issue #5643: URL: https://github.com/apache/apisix/issues/5643#issuecomment-984560824
> As I've already said, if you want to send the request in the body_filter phase, you can use ngx.timer to do so,see: https://moonbingbing.gitbooks.io/openresty-best-practices/content/ngx_lua/timer.html yes it can slove my problem ,i write like this `function _M.body_filter(conf, ctx) local function push_data(premature, uri, args, status) -- push the data uri, args, and status to the remote -- via ngx.socket.tcp or ngx.socket.udp -- (one may want to buffer the data in Lua a bit to -- save I/O operations) end local ok, err = ngx.timer.at(0, push_data, ngx.var.uri, ngx.var.args, ngx.header.status) if not ok then ngx.log(ngx.ERR, "failed to create timer: ", err) return end end` but my ngx.socket.tcp() always return 400 Bad Request,how can i reslove this problem -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org