Fix tioselectors.nim for appveyor. (#5694)
This commit is contained in:
parent
c9c64240d3
commit
050918aa2a
1 changed files with 4 additions and 3 deletions
|
|
@ -508,9 +508,10 @@ else:
|
||||||
freeAddrInfo(aiList)
|
freeAddrInfo(aiList)
|
||||||
# for some reason Windows select doesn't return both
|
# for some reason Windows select doesn't return both
|
||||||
# descriptors from first call, so we need to make 2 calls
|
# descriptors from first call, so we need to make 2 calls
|
||||||
discard selector.select(1000)
|
var rcm1 = selector.select(1000)
|
||||||
var rcm = selector.select(1000)
|
var rcm2 = selector.select(1000)
|
||||||
assert(len(rcm) == 2)
|
let rcm = len(rcm1) + len(rcm2)
|
||||||
|
assert(rcm >= 2 and rcm <= 4)
|
||||||
|
|
||||||
var sockAddress = SockAddr()
|
var sockAddress = SockAddr()
|
||||||
var addrLen = sizeof(sockAddress).Socklen
|
var addrLen = sizeof(sockAddress).Socklen
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue