creationix / moonslice

A fast web framework for luvit
16 stars 1 forks source link

test-coro-fs reports wrong # bytes copied #3

Open dvv opened 12 years ago

dvv commented 12 years ago

mangle test-coro-fs to copy file test in the current dir

dd if=/dev/urandom of=test bs=1M count=2048
luvit test-coro-fs.lua

copied 6442450944 bytes instead of copied 2147483648 bytes

copied file has size of 2147483648 bytes

dvv commented 12 years ago

again, this is chained with some wraparound -- a file of length 2GB - 1Byte is both copied ok and the bytes read is counted well