diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-15 10:28:15 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-15 10:28:15 +0100 |
commit | 15e6a2318c35adb7b8b0abe1b5827398068b2c52 (patch) | |
tree | 7b41aec0edbf9a144180bee78977673a229d3238 /src/ips | |
parent | 811484c125162fa30aec11288e1ef3101382de88 (diff) | |
download | chawan-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.nim | 4 |
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 |