shaygalon / memcache-perf Goto Github PK
View Code? Open in Web Editor NEWThis project forked from leverich/mutilate
Load generator for memcached (multi threaded, multi machine)
License: BSD 3-Clause "New" or "Revised" License
This project forked from leverich/mutilate
Load generator for memcached (multi threaded, multi machine)
License: BSD 3-Clause "New" or "Revised" License
Hello,
The following calculation in Connection::issue_set()
is incorrect for little-endian hosts:
Line 270 in 3c3d5be
The value is set to network-byte order (big-endian) earlier in the code:
Line 265 in 3c3d5be
The code already handles this for issue_get_req()
but it looks like it was missed in issue_set()
. One possible fix is the following code diff:
--- Connection.cc.orig 2021-12-07 16:40:55.000000000 -0600
+++ Connection.cc 2021-12-07 16:47:28.000000000 -0600
@@ -259,15 +259,16 @@
read_state = WAITING_FOR_SET;
if (options.binary) {
+ uint32_t body_len = keylen + 8 + length;
// each line is 4-bytes
binary_header_t h = { 0x80, CMD_SET, htons(keylen),
0x08, 0x00, {htons(0)}, //TODO(syang0) get actual vbucket?
- htonl(keylen + 8 + length)};
+ htonl(body_len)};
bufferevent_write(bev, &h, 32); // With extras
bufferevent_write(bev, key, keylen);
bufferevent_write(bev, value, length);
- l = 24 + h.body_len;
+ l = 24 + body_len;
} else {
l = evbuffer_add_printf(bufferevent_get_output(bev),
"set %s 0 0 %d\r\n", key, length);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.