local data, err, partial1 = downsock:receive('*a') --下游接收数据
if partial1 then
local bytes, err = upsock:send(partial1) --向上游send数据
local data1,err,partial = upsock:receive('*a') -- 从上游接收数据
if partial then
downsock:send(partial) -- 向下游send数据
end
return
else
ngx.say("boom!")
return
end
Attachment:
baidu.jpg
Description: JPEG image