Skip to content

Commit

Permalink
parse Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
HereAdvertise authored Jul 11, 2024
1 parent c12b944 commit 8ec8cf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pgmoon/redbean.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ do
return assert(unix.close(self.unix_socket))
end,
settimeout = function(self, t)
self.timeout = t
if self.unix_socket then
unix.setsockopt(self.unix_socket, SOL_SOCKET, SO_RCVTIMEO, t / 1000)
return unix.setsockopt(self.unix_socket, SOL_SOCKET, SO_SNDTIMEO, t / 1000)
else
self.timeout = t
end
end,
getreusedtimes = function(self)
Expand Down

0 comments on commit 8ec8cf4

Please sign in to comment.