Hacker News new | past | comments | ask | show | jobs | submit login

Nice. However:

    $ curl localhost:8080 & curl localhost:8080
    <!doctype html>
    [...]
    curl: (7) Failed connect to localhost:8080; Connection refused
Yes, the server "restarts" after each request, and during the restart, it's not listening.

That's not what I would call a "server".




The socat version I posted https://news.ycombinator.com/item?id=6224060 fixes this problem, but is a bit more cumbersome.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: