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.

User forwarded port has the first request TTFB too high

See original GitHub issue
  • VS Code Version:
    Version: 1.56.2 (user setup)
    Commit: 054a9295330880ed74ceaedda236253b4f39a335
    Date: 2021-05-12T17:13:13.157Z
    Electron: 12.0.4
    Chrome: 89.0.4389.114
    Node.js: 14.16.0
    V8: 8.9.255.24-electron.0
    OS: Windows_NT x64 10.0.19042
    
  • OS Version:
    Windows_NT x64 10.0.19042
    

Steps to Reproduce:

  1. Forward the port of a container inside VSCode

  2. Access it through browser

    image image

  3. See that the first request has almost 400ms of TTFB and the second one is less than 10ms

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexr00commented, Aug 19, 2021

Looks like almost all of the time is spent here

https://github.com/microsoft/vscode/blob/ee1655a82ebdfd38bf8792088a6602c69f7bbd94/src/vs/platform/remote/common/remoteAgentConnection.ts#L363-L363

@alexdima I am not familiar with this function, but I suspect that there’s nothing that can be done to speed it up since it all looks essential.

1reaction
alexr00commented, May 31, 2021

Assigning to June to investigate further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

High Time to first byte (TTFB) in Windows Server 2012 R2
My Windows Server 2012 R2 has a long wait time on first access. It doesn't matter which service it is: RDP server, SMB...
Read more >
Long time-to-first-byte problem · Issue #245 - GitHub
Via the ingress I have noticed: TTFB times between 1 - 5s; Happens a lot on GET OPTION calls but not always; Randomly...
Read more >
How to optimize Time To First Byte (TTFB)? - Server Fault
This will help to breakdown the TTFB number into its component values, so that you can focus on fixing them one at a...
Read more >
NodeJs website TTFB is very high and site is running very slow
log('Express server listening on port ' + 1234); });. I have also removed all database related work from app.js but still facing same...
Read more >
What is Time to First Byte, and Why is it Important? - Resources
This metric is critical in the world of web acceleration and content delivery because a high TTFB often implies latency because of high...
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