fsprojects / FsReveal

FsReveal parses markdown and F# script file and generates reveal.js slides.
http://fsprojects.github.io/FsReveal
258 stars 102 forks source link

Discover first free port for suave #84

Open forki opened 9 years ago

forki commented 9 years ago

It seems sometimes the default port is occupied by another webserver. We should discover the next free port and us that one.

/cc @jayp33 @haf

haf commented 9 years ago

That would probably be a good Utility method in Suave, which also is called from a static factory method in HttpBinding https://github.com/SuaveIO/suave/blob/master/src/Suave/Types.fs#L443.

jayp33 commented 9 years ago

I can't reproduce the error. I assumed it had something to do with Tomcat, which was also running even though it didn't occupy the Suave port. On the second try it worked, having Tomcat running simultaneously. Can't even reproduce the problem with a fresh clone of the repo. Maybe I just pressed enter? ;-)

forki commented 9 years ago

yep. but I saw similar things before.