Ok, that should be fixed now. The HTTP server was using close internally to decide if it should close the HTTP socket, and the pipe tried to call it when the file was empty.
Just a note though: you didn't hit this on an official board did you, it's ESP32 and a linux build?
I know you've done a bunch of work on Espruino's source, and this does apply to other boards so I don't mind fixing this for you. However people posting on the 'Official board' forum because they want me to fix their problems on non-official boards is exactly the kind of thing I'm trying to avoid.
It's also why I moved the JS forum into the Official Boards section - because it was becoming a dumping ground for 'this doesn't work on my non-official board' posts.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok, that should be fixed now. The HTTP server was using
close
internally to decide if it should close the HTTP socket, and the pipe tried to call it when the file was empty.Just a note though: you didn't hit this on an official board did you, it's ESP32 and a linux build?
I know you've done a bunch of work on Espruino's source, and this does apply to other boards so I don't mind fixing this for you. However people posting on the 'Official board' forum because they want me to fix their problems on non-official boards is exactly the kind of thing I'm trying to avoid.
It's also why I moved the JS forum into the Official Boards section - because it was becoming a dumping ground for 'this doesn't work on my non-official board' posts.