output error when set socket opt fails
This commit is contained in:
parent
b2e69bbb46
commit
4e92468262
@ -352,6 +352,10 @@ g_tcp_set_no_delay(int sck)
|
||||
{
|
||||
ret = 0; /* success */
|
||||
}
|
||||
else
|
||||
{
|
||||
g_writeln("Error setting tcp_nodelay");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -389,6 +393,10 @@ g_tcp_set_keepalive(int sck)
|
||||
{
|
||||
ret = 0; /* success */
|
||||
}
|
||||
else
|
||||
{
|
||||
g_writeln("Error setting tcp_keepalive");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user