Skip to content

Commit aed86de

Browse files
committed
http/websocket.lua: read_frame takes deadline not timeout
Closes daurnimator#89
1 parent b7e1b42 commit aed86de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http/websocket.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ function websocket_methods:receive(timeout)
355355
end
356356
local deadline = timeout and (monotime()+timeout)
357357
while true do
358-
local frame, err, errno = read_frame(self.socket, deadline and (deadline-monotime()))
358+
local frame, err, errno = read_frame(self.socket, deadline)
359359
if frame == nil then
360360
return nil, err, errno
361361
end

0 commit comments

Comments
 (0)