mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
Large 3MF uploads intermittently failed with [Errno 104] Connection reset by peer while the 16-byte verify_job always succeeded. The _handle_data_connection callback returned immediately, letting the asyncio task complete while cmd_STOR was still reading from the data connection. The passive port listener also stayed open during transfers. - Keep _handle_data_connection alive via _transfer_done event so the asyncio task holds strong references throughout the transfer - Close passive port listener after accepting the data connection - Reject duplicate data connections with a warning log - Add drain timeout (5s) to MQTT status pushes to prevent blocking when the slicer is busy with FTP upload - Improve error logging with bytes received and exception type