Fix dial ignoring buffered parameter (#19650) [backport]

This commit is contained in:
John Titor
2022-03-26 10:43:26 +00:00
committed by GitHub
parent 86e93eb293
commit 8cdd8867c0

View File

@@ -1963,7 +1963,7 @@ proc dial*(address: string, port: Port,
closeUnusedFds(ord(domain))
if success:
result = newSocket(lastFd, domain, sockType, protocol)
result = newSocket(lastFd, domain, sockType, protocol, buffered)
elif lastError != 0.OSErrorCode:
raiseOSError(lastError)
else: