Skip to content

Commit

Permalink
set keep alive on redis socket
Browse files Browse the repository at this point in the history
  • Loading branch information
carld committed Apr 11, 2012
1 parent b49986c commit f6c8632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redis-client.scm
Expand Up @@ -156,7 +156,8 @@
(set! *redis-socket*
(socket-connect/ai
(address-information host port family: af/inet)))
(define-values (in-port out-port)
(set! (so-keep-alive? *redis-socket*) #t)
(define-values (in-port out-port)
(socket-i/o-ports *redis-socket*))
(redis-in-port in-port)
(redis-out-port out-port)
Expand Down

0 comments on commit f6c8632

Please sign in to comment.