• Stefy Lanza (nextime / spora )'s avatar
    Implement comprehensive keep-alive system and debug enhancements · 71a6296d
    Stefy Lanza (nextime / spora ) authored
    - Fix tunnel_data debug logging suppression with proper JSON spacing detection
    - Add high-resolution timing for request_id generation using gettimeofday
    - Implement complete keep-alive protocol with statistics tracking:
      * tunnel_keepalive messages with total_bytes and rate_bps
      * tunnel_keepalive_ack responses
      * 30-second keep-alive intervals
    - Add dual-endpoint keep-alive monitoring in wssshd (220s timeout)
    - Implement 190s timeout mechanism for tunnel cleanup
    - Add periodic tunnel list debug output in wssshc (every 60 seconds)
    - Track comprehensive tunnel statistics (bytes sent/received, transfer rates)
    - Enhanced debug logging with detailed tunnel health information
    - Proper message forwarding between wssshc  wssshd  wsssht
    - Automatic tunnel closure on keep-alive timeout with cleanup
    71a6296d
wsssht.c 35.8 KB