question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ember Server - Delayed Processing with TLS Requests

See original GitHub issue

I switched my kinesis-mock to use the Ember backend per a discussion w @djspiewak and @ChristopherDavenport. After doing so, one of my functional tests started failing non-deterministically: https://github.com/etspaceman/kinesis-mock/blob/main/src/fun/scala/kinesis/mock/DescribeStreamSummaryTests.scala#L42-L56

This will run 11 requests in parallel and check the response. In successful iterations, this test takes about 1.5 seconds in total (including the test setup). In the failed scenarios, it times out after 30 seconds.

I did some research into what is happening. Attached the logs from one of my CI runs. If you do a search for “2021-06-20 15:50:14”, you’ll find the logs from the server when the test starts. 10 of the 11 streams get processed at this timestamp. stream7, however, isn’t processed until “2021-06-20 15:50:45”. So almost exactly 30 seconds later.

There is a ShutdownTimeout in Ember that is set to 30 seconds, which might be a clue. I’m kind of grasping at straws here though.

I have also only seen this on TLS enabled servers. Might be a coincidence. I’ll mention if I see it on a plain-text server.

6_Print Docker Logs.txt

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
etspacemancommented, Jul 8, 2021

I believe this was resolved with a recent update from FS2. Closing.

0reactions
etspacemancommented, Jun 21, 2021

That is a good callout @djspiewak - I’m using ExecutionContext.global in Blaze but not in Ember (which would use the fixedThreadPool from IOApp). That would explain a couple of things:

  • Why its only showing up in the Ember server
  • Why I cant recreate it locally

I’m seeing if I can invoke the issue in the Blaze server here: https://github.com/etspaceman/kinesis-mock/pull/124

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting ember-cli to work on Windows Subsystem for Linux
I've managed to get ember running in WSL, the only thing i'm noticing tho is that (re)builds are pretty slow. I'm running ember...
Read more >
http4s/http4s-dev - Gitter
It seems like it pulls 8-10 chunks very quickly, and then there's a long delay before a final chunk, and then it either...
Read more >
Why is my ember-cli build time so slow on windows?
I wrote up a script, clean-ember-cli. js, that deletes everything but ember-cli dependancies, and anything imported in the Brocfile. js .
Read more >
How to optimize TLS performance ? | Kadiska
First, an OCSP request is performed through a new TCP connection. This implies additional RTT, thus delay, to establish this connection. Then ...
Read more >
SSL/TLS encryption - DataMiner Docs
From DataMiner 10.0.3 (RN 23462) onwards, elements that request data from a device ... If the server supports TLS up to version 1.2,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found