jeffpar / pcjs.v1

PCjs Machines 1.0 (archived)
https://github.com/jeffpar/pcjs.org
GNU General Public License v3.0
473 stars 92 forks source link

XMLHttpRequest.send() doesn't return if server is dead #1

Closed jeffpar closed 6 years ago

jeffpar commented 10 years ago

In Computer.verifyUserID(), an API request is performed with a call to web.loadResource(), which performs the aforementioned send(). If I deliberately kill the server while the client app is still running and then try to call verifyUserID() -- by clicking on the "Save" button on a resumable machine -- it silently fails.

How do I catch/detect this problem and report a sensible error?

felipegtx commented 9 years ago

Hey @jeffpar, I was wondering if this was already solved (maybe with this approach) and if not, would this be the line you're pointing when you opened this issue back in Sep '14?

jeffpar commented 9 years ago

I'll have to get back to you on this next week when I return home and have access to a real computer. Thanks.

jeffpar commented 6 years ago

Those server APIs are no longer used, so I'm considering this a non-issue now.