mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
httpd.write_response capture socket error
This commit is contained in:
@@ -4,7 +4,7 @@ local readbytes = socket.read
|
||||
local writebytes = socket.write
|
||||
|
||||
local sockethelper = {}
|
||||
local socket_error = {}
|
||||
local socket_error = setmetatable({} , { __tostring = function() return "[Socket Error]" end })
|
||||
|
||||
sockethelper.socket_error = socket_error
|
||||
|
||||
@@ -28,4 +28,4 @@ function sockethelper.writefunc(fd)
|
||||
end
|
||||
end
|
||||
|
||||
return sockethelper
|
||||
return sockethelper
|
||||
|
||||
Reference in New Issue
Block a user