brianwatling/redispp — pull request #6 by zed-0xff (2014-04-18 06:56:42+00:00)
Title: fix setsockoopt() invalid argument size

before patch:
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, "\1", 1) = -1 EINVAL (Invalid argument)
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, "\1", 1) = -1 EINVAL (Invalid argument)
setsockopt(3, SOL_TCP, TCP_NODELAY, "\1", 1) = -1 EINVAL (Invalid argument)

after patch:
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0

tested on linux 3.10.25 x86_64