Open LanceLiu89 opened 4 years ago
I guess flexkvs works, I don't know if the problem is related to the TEST itself or not. I had an issue in running the flexkvs client. Eventually, we figured to started the client with a message size argument in the command line.
Sorry missed this. Yeah this is just a matter of bad defaults. The kvs-bench client defaults to a value size of 1K (see here) but flexkvs defaults to the max message size of 128B (for header + key + value, see here). Haven't caught this because I'm always running with explicit parameters. Two options: if you want large values, increase MAX_MSGSIZE
, otherwise explicitly set an appropriate value size on the client with -v
. I'll make a note to change the default when I get the chance.
every time test flexkvs, failed at starting server will close connection right now when recv, maybe the newest test code not pushed to github when server recv data from connection, the max msg size is 128, but for request body, it need sizeof(*req) + ntohl(req->request.bodylen) at least