dom96 / jester

A sinatra-like web framework for Nim.
MIT License
1.56k stars 120 forks source link

allow forwarding `jester.reusePort` as not `httpbeast.failOnExistingPort` #281

Open timotheecour opened 3 years ago

timotheecour commented 3 years ago

depends on https://github.com/dom96/httpbeast/pull/53 which should be merged first

before PR

in terminal tab 1:
nim r --threads jester/tests/example.nim

in terminal tab 2:
nim r --threads jester/tests/example.nim # no failure
curl http://0.0.0.0:5000 # sends cmd to 1st server

after PR

in terminal tab 1:
nim r --threads jester/tests/example.nim

in terminal tab 2:
nim r --threads jester/tests/example.nim
Additional info: address: "" port: 5000 [OSError]