strophe / libstrophe

A simple, lightweight C library for writing XMPP clients
http://strophe.im/libstrophe
Other
401 stars 163 forks source link

Add ability to set TCP_KEEPCNT and TCP_USER_TIMEOUT #199

Closed nosnilmot closed 2 years ago

nosnilmot commented 2 years ago

This extends the ability to set keepalive parameters on connections to include TCP_KEEPCNT (count of failed keepalive messages before connection will be terminated) and TCP_USER_TIMEOUT (timeout for pending user data on socket to cause connection termination, available on Linux 2.6.37+)

Added xmpp_conn_set_keepalive_full() to avoid breaking API by adding parameters to xmpp_conn_set_keepalive()

sjaeckel commented 2 years ago

I guess this can be closed