diff options
| author | Eric Blake <eblake@redhat.com> | 2025-02-03 16:26:07 -0600 |
|---|---|---|
| committer | Eric Blake <eblake@redhat.com> | 2025-02-11 13:45:47 -0600 |
| commit | ff12e6a5ff904e68e222b0ba567938943e0f4b68 (patch) | |
| tree | 21a5020995363442d264b4d3b3bade8594e2d929 /rust/qemu-api/src/qdev.rs | |
| parent | 617017f8dce8d8f0cd4d175cbfaac0b4077b4a1e (diff) | |
| download | focaccia-qemu-ff12e6a5ff904e68e222b0ba567938943e0f4b68.tar.gz focaccia-qemu-ff12e6a5ff904e68e222b0ba567938943e0f4b68.zip | |
nbd/server: Allow users to adjust handshake limit in QMP
Although defaulting the handshake limit to 10 seconds was a nice QoI change to weed out intentionally slow clients, it can interfere with integration testing done with manual NBD_OPT commands over 'nbdsh --opt-mode'. Expose a QMP knob 'handshake-max-secs' to allow the user to alter the timeout away from the default. The parameter name here intentionally matches the spelling of the constant added in commit fb1c2aaa98, and not the command-line spelling added in the previous patch for qemu-nbd; that's because in QMP, longer names serve as good self-documentation, and unlike the command line, machines don't have problems generating longer spellings. Signed-off-by: Eric Blake <eblake@redhat.com> Message-ID: <20250203222722.650694-6-eblake@redhat.com> [eblake: s/max-secs/max-seconds/ in QMP] Acked-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Diffstat (limited to 'rust/qemu-api/src/qdev.rs')
0 files changed, 0 insertions, 0 deletions