Redis fixed to use unbuffered sockets.

This commit is contained in:
Dominik Picheta
2012-10-21 18:58:12 +01:00
parent b1c44c9ae1
commit f9775e1fe9

View File

@@ -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)