[PR #1007] [CLOSED] Try to resolve the issue of socket port listening failure #1413

Open
opened 2026-01-29 17:00:29 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ElectronNET/Electron.NET/pull/1007
Author: @DYH1319
Created: 1/15/2026
Status: Closed

Base: developHead: fix/#1006


📝 Commits (4)

  • bdfbcd5 Merge pull request #986 from ElectronNET/develop
  • cb20fba Merge pull request #991 from ElectronNET/develop
  • 7e6760a Merge pull request #998 from ElectronNET/develop
  • 3491751 Try to improve GetFreePort method

📊 Changes

1 file changed (+66 additions, -1 deletions)

View changed files

📝 src/ElectronNET.API/Runtime/Helpers/PortHelper.cs (+66 -1)

📄 Description

#1006 In the GetFreePort() method, add an attempt to listen on the port to ensure the returned port is available for listening.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ElectronNET/Electron.NET/pull/1007 **Author:** [@DYH1319](https://github.com/DYH1319) **Created:** 1/15/2026 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `fix/#1006` --- ### 📝 Commits (4) - [`bdfbcd5`](https://github.com/ElectronNET/Electron.NET/commit/bdfbcd5b7741da933771d1a1c380268f48f9ab41) Merge pull request #986 from ElectronNET/develop - [`cb20fba`](https://github.com/ElectronNET/Electron.NET/commit/cb20fbad25465dceef9448fde9dfe3fd710dec76) Merge pull request #991 from ElectronNET/develop - [`7e6760a`](https://github.com/ElectronNET/Electron.NET/commit/7e6760a42800b67a22056ce04dd27b27d9f5ca01) Merge pull request #998 from ElectronNET/develop - [`3491751`](https://github.com/ElectronNET/Electron.NET/commit/349175164f57e2036d30690a3bec15344ad89ee9) Try to improve GetFreePort method ### 📊 Changes **1 file changed** (+66 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/ElectronNET.API/Runtime/Helpers/PortHelper.cs` (+66 -1) </details> ### 📄 Description #1006 In the `GetFreePort()` method, add an attempt to listen on the port to ensure the returned port is available for listening. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:00:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1413