mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
Redis fixed to use unbuffered sockets.
This commit is contained in:
@@ -34,7 +34,7 @@ type
|
||||
|
||||
proc open*(host = "localhost", port = 6379.TPort): TRedis =
|
||||
## Opens a connection to the redis server.
|
||||
result.socket = socket()
|
||||
result.socket = socket(buffered = false)
|
||||
if result.socket == InvalidSocket:
|
||||
OSError()
|
||||
result.socket.connect(host, port)
|
||||
|
||||
Reference in New Issue
Block a user