ember-server hanging on cancellation
See original GitHub issueRunning into this in https://github.com/http4s/http4s-jdk-http-client/pull/645.
I extracted the test into a scala-cli runnable IOApp
and did a fiber dump. They are both here:
https://gist.github.com/armanbilge/ec958260fc4bd0fed34e86c8c5091035
The fiber dump seems to indicate a hang here:
cats.effect.IOFiber@5f03cbbf WAITING
├ delay @ fs2.io.net.SocketCompanionPlatform$AsyncSocket.$anonfun$readChunk$1(SocketPlatform.scala:123)
├ async @ fs2.io.net.SocketCompanionPlatform$AsyncSocket.readChunk(SocketPlatform.scala:117)
├ flatMap @ fs2.io.net.SocketCompanionPlatform$BufferedReads.$anonfun$read$1(SocketPlatform.scala:85)
├ delay @ fs2.io.net.SocketCompanionPlatform$BufferedReads.$anonfun$withReadBuffer$1(SocketPlatform.scala:54)
├ release @ org.http4s.jdkhttpclient.CompletableFutureTerminationApp$.stallingServerR(bug.scala:182)
├ release @ org.http4s.jdkhttpclient.CompletableFutureTerminationApp$.stallingServerR(bug.scala:182)
├ release @ org.http4s.jdkhttpclient.CompletableFutureTerminationApp$.stallingServerR(bug.scala:182)
╰ apply @ org.http4s.jdkhttpclient.CompletableFutureTerminationApp$.run(bug.scala:70)
However, in an ember-client cancellation bug the fiber dump also pointed us to that exact same line, but it was a red herring. See:
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:8 (8 by maintainers)
Top Results From Across the Web
ember-cli is hanging on ember server command
I installed ember 0.1.2, bower, phantomjs, etc. I created my app, however, when I run 'ember server' it outputs the following:
Read more >http4s/http4s - Gitter
@rossabaker I run the same code on 0.20.12, and it hangs. ... ExitCode] , is the correct way to shut down the server...
Read more >Changelog - http4s
If the response cancellation hangs, it blocks the TickWheelScheduler thread. When this thread blocks, subsequent scheduled events are not processed, and memory ...
Read more >Create your first Gantt sample in EmberJS - Syncfusion
Cancel, window.ej.Gantt. ... To Run the Ember CLI application using the command ember server which builds the application and creates the dist folder....
Read more >Guide taking hours to load - Emby Guide Data
... in 1 hour 57 minutes, cancelled by user" or something similar. ... here is the copy from my /var/lib/emby/logs/emberserver.txt file.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note that the websocket bug from https://github.com/http4s/http4s/issues/6420#issuecomment-1138864091 was fixed in https://github.com/http4s/http4s/pull/6587.
I also fixed this by adding
withShutdownTimeout(1.second)
as well.