From 4a6c01bc1a5d0c0a19f6403941a9ea928011b645 Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Sat, 7 Sep 2013 13:51:33 -0700 Subject: Send a newline with the QUIT command Addresses #381 --- library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.c b/library.c index 19a6f43b..7e7dc072 100644 --- a/library.c +++ b/library.c @@ -1182,7 +1182,7 @@ PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC) redis_sock->dbNumber = 0; if (redis_sock->stream != NULL) { if (!redis_sock->persistent) { - redis_sock_write(redis_sock, "QUIT", sizeof("QUIT") - 1 TSRMLS_CC); + redis_sock_write(redis_sock, "QUIT" _NL, sizeof("QUIT" _NL) - 1 TSRMLS_CC); } redis_sock->status = REDIS_SOCK_STATUS_DISCONNECTED; -- cgit v1.2.3