Skip to content

Fix tsp init hanging when done due to unclosed connection#3185

Merged
timotheeguerin merged 4 commits into
microsoft:mainfrom
timotheeguerin:fix/init-never-ending
Apr 23, 2024
Merged

Fix tsp init hanging when done due to unclosed connection#3185
timotheeguerin merged 4 commits into
microsoft:mainfrom
timotheeguerin:fix/init-never-ending

Conversation

@timotheeguerin

@timotheeguerin timotheeguerin commented Apr 17, 2024

Copy link
Copy Markdown
Member

fix #3102

Problem was that when following redirect we need to explicitly close the response watch otherwise we always await on it

However I switched to using follow-redirects library that will more safely handle redirect for us.(e.g. max redirects)
With node 22 the fetch api should not be experimental anymore so we could potentially migrate to it next year when node 20 is out of support

@azure-sdk

azure-sdk commented Apr 17, 2024

Copy link
Copy Markdown
Collaborator

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Fix tsp init hanging when done due to unclosed connection

@azure-sdk

Copy link
Copy Markdown
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3185/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3185/

@timotheeguerin timotheeguerin added this pull request to the merge queue Apr 23, 2024
Merged via the queue into microsoft:main with commit 36c339b Apr 23, 2024
@timotheeguerin timotheeguerin deleted the fix/init-never-ending branch April 23, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: tsp init Process Hangs After Project Creation

3 participants