Skip to content

Conversation

@Coly010
Copy link
Contributor

@Coly010 Coly010 commented Dec 15, 2025

When multiple MF dev servers run concurrently and share the same remote,
they would both attempt to start proxies on the same port, causing
EADDRINUSE errors.

This fix checks if a port is already in use before attempting to start
a proxy. If the port is occupied (likely by another MF dev server that
started earlier), the proxy is skipped for that remote since it's
already being served.

Uses the existing waitForPortOpen utility with retries: 0 to perform
an immediate check.

Fixes #33470

@vercel
Copy link

vercel bot commented Dec 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nx-dev Ready Ready Preview Dec 15, 2025 5:25pm

@Coly010 Coly010 requested a review from a team as a code owner December 15, 2025 17:01
@Coly010 Coly010 requested a review from leosvelperez December 15, 2025 17:01
@Coly010 Coly010 self-assigned this Dec 15, 2025
@netlify
Copy link

netlify bot commented Dec 15, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit a11f8fd
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69404171c7f5bf00089574af
😎 Deploy Preview https://deploy-preview-33871--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Dec 15, 2025

View your CI Pipeline Execution ↗ for commit a11f8fd

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 35m 48s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 22s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 12s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-15 17:53:15 UTC

…e proxies

When multiple MF dev servers run concurrently and share the same remote,
they would both attempt to start proxies on the same port, causing
EADDRINUSE errors.

This fix checks if a port is already in use before attempting to start
a proxy. If the port is occupied (likely by another MF dev server that
started earlier), the proxy is skipped for that remote since it's
already being served.

Uses the existing `waitForPortOpen` utility with retries: 0 to perform
an immediate check.

Fixes #33470
@Coly010 Coly010 enabled auto-merge (squash) December 15, 2025 17:42
@Coly010 Coly010 merged commit 68d539c into master Dec 15, 2025
20 checks passed
@Coly010 Coly010 deleted the mf-port-collision branch December 15, 2025 17:53
FrozenPandaz pushed a commit that referenced this pull request Dec 15, 2025
…e proxies (#33871)

When multiple MF dev servers run concurrently and share the same remote,
they would both attempt to start proxies on the same port, causing
EADDRINUSE errors.

This fix checks if a port is already in use before attempting to start
a proxy. If the port is occupied (likely by another MF dev server that
started earlier), the proxy is skipped for that remote since it's
already being served.

Uses the existing `waitForPortOpen` utility with retries: 0 to perform
an immediate check.

Fixes #33470

(cherry picked from commit 68d539c)
FrozenPandaz pushed a commit that referenced this pull request Dec 15, 2025
…e proxies (#33871)

When multiple MF dev servers run concurrently and share the same remote,
they would both attempt to start proxies on the same port, causing
EADDRINUSE errors.

This fix checks if a port is already in use before attempting to start
a proxy. If the port is occupied (likely by another MF dev server that
started earlier), the proxy is skipped for that remote since it's
already being served.

Uses the existing `waitForPortOpen` utility with retries: 0 to perform
an immediate check.

Fixes #33470

(cherry picked from commit 68d539c)
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.

module federation dev server of remote w/ remote leads to EADDRINUSE err

3 participants