redis / node-redis

Redis Node.js client

Home Page:https://redis.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3 socket writes instead of one?

amochkin opened this issue · comments

Hi, @everyone!

Can someone please explain why is this happening:

node-redis/index.js

Lines 896 to 899 in 4f85030

} else { // buffer
this.write('$' + arg.length + '\r\n');
this.write(arg);
this.write('\r\n');

Let`s concatenate the data and send once.