TCP keep-alive parameters not being honoured

I am experimenting with TCP keep alive on my Linux box, and have written the following small server: #include <iostream> #include <cstring> #include <netinet/in.h> #include <...