Magic Wormhole is my preferred file transfer protocol. I use it primarily to transfer files between my Android phone and laptop. I use Wormhole File Transfer on my Android phone and Warp on my laptop. Everything was smooth until today, when I tried to transfer a ~500 MB file from my phone to my laptop. Since it's a large file, it takes a few minutes to complete. I don't interact with my phone during the transfer, but it suddenly failed with a "connection reset by peer" error when my phone went to sleep.
It seems to be caused by battery optimization, which kills Wormhole when the phone enters sleep mode. I also noticed that apps never asking the user to disable battery optimization. While this issue is expected, it's kind of a bummer and ruins the experience, especially when transferring large files.