output error when set socket opt fails

This commit is contained in:
Jay Sorg 2012-07-23 11:06:04 -07:00
parent b2e69bbb46
commit 4e92468262

View File

@ -352,6 +352,10 @@ g_tcp_set_no_delay(int sck)
{ {
ret = 0; /* success */ ret = 0; /* success */
} }
else
{
g_writeln("Error setting tcp_nodelay");
}
} }
} }
else else
@ -389,6 +393,10 @@ g_tcp_set_keepalive(int sck)
{ {
ret = 0; /* success */ ret = 0; /* success */
} }
else
{
g_writeln("Error setting tcp_keepalive");
}
} }
} }
else else