• Stefy Lanza (nextime / spora )'s avatar
    Optimize C wsscp performance and add SSH options · 7eb01b2a
    Stefy Lanza (nextime / spora ) authored
    - Replace busy-waiting usleep loops with select() for efficient I/O multiplexing
    - Add 50ms timeouts to prevent blocking operations
    - Maintain 1MB buffers for optimal throughput
    - Add 3-second exit delay after SCP completion for clean shutdown
    - Fix critical bug in setup_tunnel return codes to prevent segfaults
    - Correct memory management in argument cleanup to avoid corruption
    - Add StrictHostKeyChecking=no option to wsscp and wsssh in both Python and C implementations
    7eb01b2a
wsscp.c 50.7 KB