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

(cherry picked from commit 8cdd8867c0)
This commit is contained in:
John Titor
2022-03-26 10:43:26 +00:00
committed by narimiran
parent bf3a2e010d
commit 9b560747e8

View File

@@ -1923,7 +1923,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: