mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 20:38:22 +01:00
Works fine with the new linking in Linux.
This commit is contained in:
parent
b2b7e9cef1
commit
4583a6304d
@ -207,7 +207,6 @@ function test_totaltimeoutreceive(len, tm, sl)
|
|||||||
data:settimeout(tm, "total")
|
data:settimeout(tm, "total")
|
||||||
local t = socket.gettime()
|
local t = socket.gettime()
|
||||||
str, err, partial, elapsed = data:receive(2*len)
|
str, err, partial, elapsed = data:receive(2*len)
|
||||||
print(err, elapsed, socket.gettime() - t)
|
|
||||||
check_timeout(tm, sl, elapsed, err, "receive", "total",
|
check_timeout(tm, sl, elapsed, err, "receive", "total",
|
||||||
string.len(str or partial) == 2*len)
|
string.len(str or partial) == 2*len)
|
||||||
end
|
end
|
||||||
@ -228,7 +227,6 @@ function test_totaltimeoutsend(len, tm, sl)
|
|||||||
data:settimeout(tm, "total")
|
data:settimeout(tm, "total")
|
||||||
str = string.rep("a", 2*len)
|
str = string.rep("a", 2*len)
|
||||||
total, err, partial, elapsed = data:send(str)
|
total, err, partial, elapsed = data:send(str)
|
||||||
print(elapsed, "!")
|
|
||||||
check_timeout(tm, sl, elapsed, err, "send", "total",
|
check_timeout(tm, sl, elapsed, err, "send", "total",
|
||||||
total == 2*len)
|
total == 2*len)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user