parent
0012b639c8
commit
408dcf12bd
|
@ -130,13 +130,18 @@ proc new*(
|
||||||
flags: set[ServerFlags] = {},
|
flags: set[ServerFlags] = {},
|
||||||
upgrade: Upgrade): T {.public.} =
|
upgrade: Upgrade): T {.public.} =
|
||||||
|
|
||||||
let transport = T(
|
let
|
||||||
flags: flags,
|
transport = T(
|
||||||
clientFlags:
|
flags: flags,
|
||||||
if ServerFlags.TcpNoDelay in flags:
|
clientFlags:
|
||||||
{TransportFlags.TcpNoDelay}
|
if ServerFlags.TcpNoDelay in flags:
|
||||||
else:
|
compilesOr:
|
||||||
default(set[TransportFlags]),
|
{TransportFlags.TcpNoDelay}
|
||||||
|
do:
|
||||||
|
doAssert(false)
|
||||||
|
default(set[TransportFlags])
|
||||||
|
else:
|
||||||
|
default(set[TransportFlags]),
|
||||||
upgrader: upgrade)
|
upgrader: upgrade)
|
||||||
|
|
||||||
return transport
|
return transport
|
||||||
|
|
Loading…
Reference in New Issue