-
-
Notifications
You must be signed in to change notification settings - Fork 318
Open
Description
When run with wds --watch
some binary files get distorted.
Tried with 0.4.6 and some older versions. On node v20.19.4.
Test file data.bin
(60 bytes):
00000000: 86 16 87 96 f6 d6 96 36 .......6
00000008: 7b 22 76 65 72 73 69 6f {"versio
00000010: 6e 22 3a 31 2c 22 77 69 n":1,"wi
00000018: 64 74 68 22 3a 31 32 38 dth":128
00000020: 2c 22 69 72 72 61 64 69 ,"irradi
00000028: 61 6e 63 65 22 3a 7b 22 ance":{"
00000030: 70 6f 6c 79 6e 6f 6d 69 polynomi
00000038: 61 6c 73 22 als"
Served with wds --watch
without any other config.
Result of curl http://localhost:8000/data.bin
(68 bytes):
00000000: ef bf bd 16 ef bf bd ef ........
00000008: bf bd ef bf bd d6 96 36 .......6
00000010: 7b 22 76 65 72 73 69 6f {"versio
00000018: 6e 22 3a 31 2c 22 77 69 n":1,"wi
00000020: 64 74 68 22 3a 31 32 38 dth":128
00000028: 2c 22 69 72 72 61 64 69 ,"irradi
00000030: 61 6e 63 65 22 3a 7b 22 ance":{"
00000038: 70 6f 6c 79 6e 6f 6d 69 polynomi
00000040: 61 6c 73 22 als"
The same data truncated to 59 or less isn't distorted.
Serving without --watch
works ok.
That's totally insane!
Metadata
Metadata
Assignees
Labels
No labels