The msgpack library may be present in /usr/lib or /usr/lib/$arch,
but only the former is being searched. Check both places and fix the
library name to use the C lib (libmsgpackc) rather than the C++ lib
(libmsgpack).
Signed-off-by: James McCoy <jamessan@jamessan.com>
In msgpack-c's 1.0.0 release, the code was changed to be compatible with
the v5 msgpack spec, specifically separating out the STR and BIN types
as replacements for the old RAW type.
While the STR type is likely the right replacement type to use, it does
introduce a str 8 variant that wasn't present for the old RAW type. For
better compatibility, the msgpack_pack_v4raw functions were added to
directly map to the old functionality.
Signed-off-by: James McCoy <jamessan@jamessan.com>
Since 0.5.8, msgpack-c has provided a pkg-config file. If it's
installed, use pkg-config to get the relevant CFLAGS/LDFLAGS.
Signed-off-by: James McCoy <jamessan@jamessan.com>
When the client sends a connection close, the server now returns
the same header, and the socket is closed. Instead of a 400 Bad Request
clients should get a socket read error.
This is no longer true. Files slog.[ch] were introduced in webdis codebase by
mrb <michaelrbernstein@gmail.com> and were merged into master branch by
upstream developer in commit bec19d06. This file originally contained one
function void slog(...) with 13 statements. 12 of these statements were copied
from function void redisLog(...) from redis-server codebase
(https://github.com/antirez/redis, commit aa81e4d5, file src/redis.c, 18
statements). Since that time these files were refactored and have nothing to do
with the codebase it was originally based on. Not to mention current
src/redis.c from redis repository greatly differs from the mentioned commit
where code was borrowed from.