Closed vivasvan1 closed 3 months ago
/bounty $150
/attempt #2776
with your implementation plan/claim #2776
in the PR body to claim the bountyThank you for contributing to zio/zio-http!
Add a bounty • Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
🟡 @varshith257 | Jun 22, 2024, 6:11:25 PM | #58 |
@jdegoes @vivasvan1 AFAICT this is the intended behaviour, and it's not related to zio-http but with zio (see here).
The workaround is to add run / fork := true
in the build.sbt
file so that the server is shut down
/attempt #2776
I'm closing this issue since it's not related to zio-http
, although it'd be good if someone can create a PR in the zio-quickstart-restful-webservice
repo as per my comment above
@varshith257: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏
💡 @varshith257 submitted a pull request that claims the bounty. You can visit your bounty board to reward.
Describe the bug In the example
zio-quickstart-restful-webservice
, Runningsbt
, thenrun
and Pressing Ctrl-C blocks the port 8080To Reproduce Steps to reproduce the behaviour:
sbt
run
and press enterrun
again and press enterExpected behaviour Server.serve should be able to handle interuptions (like Ctrl+C)
Screenshots
Desktop (please complete the following information):
Additional context n/a