benrady / shinatra

A simple web server in 5 lines of bash
812 stars 80 forks source link

Fix: Add `-N` for stop listening after request #22

Closed JeremyLARDENOIS closed 2 years ago

JeremyLARDENOIS commented 3 years ago

I add the -N option who allow to have end of request when we receive it.

From manual: '-N shutdown(2) the network socket after EOF on the input. Some servers require this to finish their work.'

Enjoy and have a nice day !

JeremyLARDENOIS commented 2 years ago

23 Provides a better solution

benrady commented 2 years ago

This doesn't work on BSD nc