Fix incorrect length calculation
Set request lengths were being calculated using the header data (which is in network order).
This commit is contained in:
parent
335e28263c
commit
998f732b24
@ -160,7 +160,7 @@ int ProtocolBinary::set_request(const char* key, const char* value, int len) {
|
||||
bufferevent_write(bev, &h, 32); // With extras
|
||||
bufferevent_write(bev, key, keylen);
|
||||
bufferevent_write(bev, value, len);
|
||||
return 24 + h.body_len;
|
||||
return 24 + ntohl(h.body_len);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user