summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJohn Titor <forsenonlhaimaisentito@users.noreply.github.com>2022-03-26 10:43:26 +0000
committerGitHub <noreply@github.com>2022-03-26 11:43:26 +0100
commit8cdd8867c0237c28f7a43e6f871507eda207a15d (patch)
tree45af521ed5dca4a34f079cf11b0bbc447dcfa87e
parent86e93eb2938329db921d5edb718fa7f3ecee83b1 (diff)
downloadNim-8cdd8867c0237c28f7a43e6f871507eda207a15d.tar.gz
Fix dial ignoring buffered parameter (#19650) [backport]
-rw-r--r--lib/pure/net.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim
index c1d4c6228..9922bbfa4 100644
--- a/lib/pure/net.nim
+++ b/lib/pure/net.nim
@@ -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: