2018-08-08, 03:36 PM
(2018-08-07, 09:34 PM)stripydog Wrote:(2018-08-06, 11:11 PM)stripydog Wrote: Undesirable behaviour for sure but this isn't so much a bug as a condition which wasn't anticipated (no outputs to write and repeated reconnections)
Short of a complete rewrite (yes, yes, kplex two-dot-oh) I can think of a couple of ways to mitigate against the problem we saw here: make keepalives work where kplex is a server (rather than a client) or provide an option to output some kind of heartbeat (proprietary sentence which should be ignored by receivers). All comment/suggestionsgratefully received (but not guaranteed to be acted upon :-)
FYI I am going to remove the disconnect-on-idle behavior in SK server anyway. That should make this particular interaction go away.
Outputting bogus heartbeats seems like a kludge to me - the client doesn't need them, this is kplex internal. How about a watchdog thread that closes connections that the client has closed (that are in CLOSE_WAIT), no matter what?