sockets - How to set the keepalive timeout in Android? -
i'd lower tcp keepalive time on socket i'm opening 2 hours on order of ten minutes. can make use keepalive socket.setkeepalive(true), how can control time before keepalive packet sent?
it looks if using ndk, want distribute code jar, that's not ideal me.
this obvious answer [i.e. it's not option specific case] can of course implement own keepalive sending 1 throw-away byte (in either direction) every 10 minutes.
Comments
Post a Comment