mfikes / ambly

ClojureScript REPL into embedded JavaScriptCore
http://ambly.fikesfarm.com
Eclipse Public License 1.0
540 stars 21 forks source link

Race appears to exist between writing WebDAV files and them being read #25

Closed mfikes closed 9 years ago

mfikes commented 9 years ago

A large sleep is currently in the code to avoid it. The odd thing is that I don't recall seeing this earlier.

swannodette commented 9 years ago

yeah I was somewhat worried about this. We might goog.require to queue until WebDAV server acknowledges the write? An arbitrary sleep time seems pretty brittle.

mfikes commented 9 years ago

@swannodette Looks like there was no "race". I had really botched the writing of ambly_repl_deps.js (analog of node_repl.deps) by failing to redirect its output to the WebDAV target. Fixing this cleared all of this up! :)

swannodette commented 9 years ago

@mfikes awesome! :)