dart-lang/shelf

`HttpServer` can't be restart normally

Opened this issue · 0 comments

I found that if the app runs in the background for a long time on iOS when Low Power Mode is enabled, the HttpServer becomes unresponsive when the app returns to the foreground. So I tried to restart the HttpServer, but the problem is that the HttpServer cannot be stopped and started normally when the shared parameter is set to true. There are no errors when I stop the HttpServer and then start it again. However, the HttpServer still cannot respond to any requests. If I set shared to false, everything is ok.