net/http: FileServer on WSL fails with wget and curl for files over ~4MB #27128
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
The WSL team want you to file bugs to them about any differences from actual Linux.
We generally don't investigate these things, or only do some when it appears we might be violating Linux or POSIX APIs in undocumented ways, or do so out of curiosity.
But please file a WSL bug and link it here.
We probably won't be investigating this. It's WSL's job to act like Linux and they don't want projects treating them like its own port.
referenced this issue
Aug 22, 2018
i run into the same issue and while debugging it i saw that CopyN in the fileserver returns EOF early:
@bradfitz i wondered if the ignored error could be checked and logged to make easier to debug issues happening there?