Keep the client's hello names and `min_buffer_ms` within spec limits #624
<!-- ccr-overview-v2 -->
🟢 Approval recommended
No active review issues were identified for the changes enforcing Sendspin hello-string and buffer limits.
No open issues 🎉
<details>
<summary><strong>What changed in this PR</strong></summary>
This PR keeps client SDK hello strings and minimum buffer values within Sendspin protocol limits, preventing strict servers from rejecting otherwise valid clients.
Changes:
min_buffer_ms to 0–5000.| File | Description |
| ---- | ----------- |
| tests/test_client_protocol_callbacks.py | Tests UTF-8-safe truncation, warnings, and buffer clamping. |
| aiosendspin/client/connection.py | Truncates name and device information when building client hello messages. |
| aiosendspin/client/client.py | Warns about oversized hello strings and enforces the buffer range. |
</details>
<sub>Review effort: Balanced</sub>
copilot-pull-request-reviewer[bot]
maximmaxim345
What does this implement/fix?
<!-- Quick description and explanation of changes. -->
The client SDK could send a
client/helloname ordevice_infostring over 64 UTF-8 bytes, or amin_buffer_msup to 30000. Conforming servers close the connection on these, and an aiosendspin server in strict mode rejects the client.The client now cuts those strings to 64 bytes without splitting a character, and clamps
min_buffer_msto 0-5000.Related issue or spec PR (if applicable):
Types of changes
<!--
Tick exactly one box. CI (.github/workflows/pr-labels.yaml) applies the
matching label, and the release notes use it to sort this change.
-->
bugfixnew-featureenhancementbreaking-changerefactordocumentationmaintenancecidependencies