You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[commandline] servers seem not to block waiting for connections #85
I'm working on the commandline branch. A simple example server such as the one below prints the typical snap startup info to stdout, and then the process immediately ends without writing anything to access.log or error.log:
This wouldn't be that old clock issue that you discovered would it? If so, since there is now a fixed version available, we should definitely add a constraint to leave out the offending versions.
@sopvop Thanks for the lead. Based on that, I tried explicitly setting the default port here to Just 8000. This does causes a port to be picked by default, but doesn't prevent the fallthrough. Also - choosing a port at runtime with the -p 8001 flag, 8001 makes it all the way through and snap does start up on that port - it just doesn't stay up.
Activity
mightybyte commentedon Apr 28, 2016
This wouldn't be that old clock issue that you discovered would it? If so, since there is now a fixed version available, we should definitely add a constraint to leave out the offending versions.
imalsogreg commentedon Apr 28, 2016
👍 for some constraints than exclude (clock >= 0.5.2 && < 0.7). I don't think that is the issue here though. My clock is at v0.5.1.
mightybyte commentedon Apr 29, 2016
Just thinking about this a little more...does the issue happen on the master branch? That could help in tracking it down.
imalsogreg commentedon Apr 29, 2016
The same simple program
main = quickHttpServe (writeText $ pack "Hello")runs as usual on the master branch.mightybyte commentedon Apr 29, 2016
Does the test suite pass on the commandline branch? Based on the nature of your report here, I would hope the test suite is failing.
imalsogreg commentedon Apr 29, 2016
Snap testsuite:
I had to update the test suite a little to match the new types in commandline.
Testsuite fails many of the hspec cases with
(Connection refused)errors (consistent with the server not staying up long enough to do anything).snap-server testsuite:
commandline branch: all green! (second file in this gist
sopvop commentedon Apr 29, 2016
I think the problem is in this being a maybe monad and this not setting port. Can't check this myself right now, unfortunately.
imalsogreg commentedon Apr 29, 2016
@sopvop Thanks for the lead. Based on that, I tried explicitly setting the default port here to
Just 8000. This does causes a port to be picked by default, but doesn't prevent the fallthrough. Also - choosing a port at runtime with the-p 8001flag, 8001 makes it all the way through and snap does start up on that port - it just doesn't stay up.Hmm.