How can I keep kiwirecorder from hanging if I try to get a SNR from a KiwiSDR that is busy already?

I tried this:

$ python3 kiwirecorder.py -u kl7na -k 3 -s vr2bg.proxy.kiwisdr.com p 8073 -f 11650 -m am --tlimit=1 --connect-timeout=1 connect-retries=0

and kiwirecorder just hangs. I also tried 2 retries, but still no dice. It hangs.

I tried this:

$ python3 kiwirecorder.py -u kl7na -k 3 -s vr2bg.proxy.kiwisdr.com p 8073 -f 11650 -m am --tlimit=1 --connect-timeout=1 connect-retries=0 --nq --log=debug

2024-08-06 17:02:33,494 pid 1624827 started sound recorder 0

2024-08-06 17:02:33,772 pid 1624827 Client's opening handshake Request-Line: b'GET /1724552580/SND HTTP/1.1\r\n'

2024-08-06 17:02:33,772 pid 1624827 Sec-WebSocket-Key: b'sHEBNBzze9SXDHRlbl7RyA==' (b0 71 01 34 1c f3 7b d4 97 0c 74 65 6e 5e d1 c8)

2024-08-06 17:02:33,773 pid 1624827 Sent client's opening handshake headers: ['Host: vr2bg.proxy.kiwisdr.com:8073\r\n', 'Upgrade: websocket\r\n', 'Connection: Upgrade\r\n', 'Sec-WebSocket-Key: sHEBNBzze9SXDHRlbl7RyA==\r\n', 'Sec-WebSocket-Version: 13\r\n']

2024-08-06 17:02:33,773 pid 1624827 Start reading Status-Line

2024-08-06 17:02:34,670 pid 1624827 Received valid Status-Line

2024-08-06 17:02:34,670 pid 1624827 Start reading headers until we see an empty line

2024-08-06 17:02:34,671 pid 1624827 Received 'upgrade' header

2024-08-06 17:02:34,671 pid 1624827 Received 'connection' header

2024-08-06 17:02:34,672 pid 1624827 Received 'sec-websocket-accept' header

2024-08-06 17:02:34,672 pid 1624827 Received an empty line

2024-08-06 17:02:34,672 pid 1624827 Server's opening handshake headers: {'upgrade': ['websocket'], 'connection': ['Upgrade'], 'sec-websocket-accept': ['5JhyYS8qE9sPoJ2c3AeM25LhBk0=']}

2024-08-06 17:02:34,673 pid 1624827 Response for challenge : '5JhyYS8qE9sPoJ2c3AeM25LhBk0=' (e4 98 72 61 2f 2a 13 db 0f a0 9d 9c dc 07 8c db 92 e1 06 4d)

2024-08-06 17:02:34,673 pid 1624827 Expected response for challenge: b'5JhyYS8qE9sPoJ2c3AeM25LhBk0=' (e4 98 72 61 2f 2a 13 db 0f a0 9d 9c dc 07 8c db 92 e1 06 4d)

2024-08-06 17:02:34,673 pid 1624827 send SET (SND) "SET auth t=kiwi p="

2024-08-06 17:02:35,035 pid 1624827 recv MSG (SND) too_busy: 8

2024-08-06 17:02:35,035 pid 1624827 vr2bg.proxy.kiwisdr.com:8073 too busy now. Reconnecting after 15 seconds

But it keeps retrying every 15 seconds. How do I stop this?

Thanks &73,

Rob

KL7NA

Comments

  • I just added two new parameters to kiwirecorder: --busy-timeout and --busy-retries

    These are similar to --connect-timeout and --connect-retries except apply to when a Kiwi says it's busy (all available connections in use) as opposed to not responding at all (connection failure).

    So please update from the repo and give it a try.

  • Thank you @jks! It works at least with --busy-retrries=1. I really appreciate your help!

  • jksjks
    edited August 12

    Sorry it took a while. Lots going on..

Sign In or Register to comment.