This results in the expected output and the file being transferred successfully.
Here's the failing case:
dd bs=513 count=1 if=/dev/urandom of=test2.dat # any block size can be used here as long as it's not a multiple of 512
grpcurl -plaintext -proto ./sni.proto -d "{\"uri\":\"fxpakpro://./dev/cu.usbmodemDEMO000000001\",\"path\":\"/test2.dat\",\"data\":\"$(base64 < ./test2.dat)\"}" localhost:8191 DeviceFilesystem.PutFile
This outputs
ERROR:
Code: Unknown
Message: fxpakpro: sendSerialProgress: read from io.Reader: EOF
Observed on darwin/arm64 running the darwin/amd64 executable.
Working case with 512 byte file:
This results in the expected output and the file being transferred successfully.
Here's the failing case:
This outputs
And the SNI logs show