about summary refs log tree commit diff stats
path: root/src/ips
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-15 10:28:15 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-15 10:28:15 +0100
commit15e6a2318c35adb7b8b0abe1b5827398068b2c52 (patch)
tree7b41aec0edbf9a144180bee78977673a229d3238 /src/ips
parent811484c125162fa30aec11288e1ef3101382de88 (diff)
downloadchawan-15e6a2318c35adb7b8b0abe1b5827398068b2c52.tar.gz
Make load() slightly less dumb
This gets rid of the inefficient timeout thing. Still, the ideal solution
would be to move the timeout into the container; TODO.
Diffstat (limited to 'src/ips')
-rw-r--r--src/ips/socketstream.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ips/socketstream.nim b/src/ips/socketstream.nim
index 6d3e5cd9..e934e7fc 100644
--- a/src/ips/socketstream.nim
+++ b/src/ips/socketstream.nim
@@ -119,8 +119,8 @@ proc connectSocketStream*(path: string, buffered = true, blocking = true): Socke
   result = newSocketStream()
   result.blk = blocking
   let sock = newSocket(Domain.AF_UNIX, SockType.SOCK_STREAM, Protocol.IPPROTO_IP, buffered)
-  #if not blocking:
-  #  sock.getFd().setBlocking(false)
+  if not blocking:
+    sock.getFd().setBlocking(false)
   connectUnix(sock, path)
   result.source = sock