Closed raggi closed 13 years ago
I decided to implement this a different way such that multiple socket options can be set.
http.socket_options << [Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, 1]
Will do what you want.
i, err, only see a difference in method name. thanks!
Oh, wait, why not just use http.sockopts.concat Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, 1
?
Sorry for the noise, I see what you're up to... Yeah, my patch was probably broken for some other uses.
In the spirit of the one tenderlove, here's a video:
http://www.youtube.com/watch?v=ie7IIAufMzI
And here's a patch for custom setsockopt options, with a test and a refactor.