palainp / mirage-sshfs

ISC License
22 stars 1 forks source link

Maximum packet length #6

Closed palainp closed 2 years ago

palainp commented 2 years ago

There is an issue when receiving big write packets. To reproduce:

[user@localhost sshfs]$ # This creates a 150k file with 0s with many small write commands
[user@localhost sshfs]$ dd if=/dev/zero of=./test.img bs=15k count=10 oflag=dsync
10+0 records in
10+0 records out
153600 bytes (154 kB, 150 KiB) copied, 0.378954 s, 405 kB/s
[user@localhost sshfs]$ # This creates a 16k file with 0s in one block
[user@localhost sshfs]$ dd if=/dev/zero of=./test.img bs=16k count=1 oflag=dsync
   < hangs >

It seems that the sshfs server is not able to process packets of size>=16k. I have packets processed with 14336 bytes of data, maybe 16384 bytes (header included) is a max? hangs means that I can see that the 16k packet is correctly sent but is not received by the sshfs server.