mfikes / ambly

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

Zombie mount point #86

Closed mfikes closed 9 years ago

mfikes commented 9 years ago
  1. Connect Ambly to a local app.
  2. Kill Ambly and kill the app.
  3. This leaves mount point intact and the OS remembers it
  4. Start up a different Ambly-enabled app locally and attempt to connect

Step 4 fails because Ambly derives the mount point name from the Bonjour name. This produces a new mount directory. But the old mount point gets re-established by the OS when the new app starts up on the same http://127.0.0.1:[port] endpoint. This prevents mounting this same endpoint under the new directory.

The solution is probably to instead derive the mount point directory name from the HTTP URL (which doesn't change in the sequence above), so that things can be properly dealt with and the mount re-established properly by Ambly.