server BUGFIX fix partial processing of tcp params changes (#606)
server BUGFIX fix partial processing of tcp params changes (#606)

When deleting an enpoint, neither nc_server_endpt_set_keepalives nor
nc_server_ch_client_endpt_set_keepalives are called. rc remains with its
current value which is necessarily SR_ERR_NOT_FOUND (meaning "end of
changes").

This causes np2srv_tcp_keepalives to return SR_ERR_INTERNAL which causes
np2srv_endpt_tcp_params_cb to stop processing the changes and return an
error. No error message is printed.

Reset the value of rc to fix the issue.

If one of nc_server_ch_client_endpt_set_keepalives or
nc_server_endpt_set_keepalives actually failed, display an explicit
error message.

Signed-off-by: Robin Jarry <469d6d325cc59f9b92eabc4e99fb576bc1f833c8@6wind.com>
CESNET/Netopeer2,CESNET/Netopeer2