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
commit 8cdd8867c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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