Skip to content

Commit 4a6c01b

Browse files
Send a newline with the QUIT command
Addresses phpredis#381
1 parent 0fbf639 commit 4a6c01b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC)
11821182
redis_sock->dbNumber = 0;
11831183
if (redis_sock->stream != NULL) {
11841184
if (!redis_sock->persistent) {
1185-
redis_sock_write(redis_sock, "QUIT", sizeof("QUIT") - 1 TSRMLS_CC);
1185+
redis_sock_write(redis_sock, "QUIT" _NL, sizeof("QUIT" _NL) - 1 TSRMLS_CC);
11861186
}
11871187

11881188
redis_sock->status = REDIS_SOCK_STATUS_DISCONNECTED;

0 commit comments

Comments
 (0)