Skip to content

Hotfix UDP Client vs Server#1411

Open
jonnyarndt wants to merge 4 commits intomainfrom
hotfix-udpClient
Open

Hotfix UDP Client vs Server#1411
jonnyarndt wants to merge 4 commits intomainfrom
hotfix-udpClient

Conversation

@jonnyarndt
Copy link
Copy Markdown
Contributor

@jonnyarndt jonnyarndt commented May 1, 2026

The UDP control method contract in Essentials needed to change as udp was acting as a server not a client.

  1. udp control method now represents outbound UDP client behavior.
  2. udpServer now represents local UDP listener/server existing behavior.

PR introduces a BREAKING CHANGE or more specifically, a breaking configuration schema change.

Existing configurations with control method of udp or listener-style UDP need to switch from udp to udpServer.

udp control method now instantiates udp client.

jonnyarndt added 3 commits May 1, 2026 14:29
BREAKING CHANGE, existing `udp` control method is now `udpServer` and `udp` control method is now a udp client
Copilot AI review requested due to automatic review settings May 1, 2026 23:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Essentials’ UDP control method semantics so udp is an outbound UDP client, while the previous listener/server behavior is preserved under a new udpServer control method (breaking config schema change).

Changes:

  • CommFactory now instantiates GenericUdpClient for Udp and GenericUdpServer for UdpServer.
  • Adds UdpServer to eControlMethod.
  • Introduces GenericUdpClient and updates GenericComm documentation to reflect the new contract.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/PepperDash.Essentials.Core/Comm and IR/CommFactory.cs Routes Udp to new outbound client; adds UdpServer case for listener behavior.
src/PepperDash.Core/Comm/eControlMethods.cs Updates enum docs for Udp and adds UdpServer.
src/PepperDash.Core/Comm/GenericUdpClient.cs New outbound UDP client implementation w/ receive loop + auto-reconnect support.
docs/docs/usage/GenericComm.md Documents UdpServer, updates socket options list and clarifies address usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/PepperDash.Core/Comm/GenericUdpClient.cs
Comment thread src/PepperDash.Core/Comm/GenericUdpClient.cs
Comment thread src/PepperDash.Core/Comm/GenericUdpClient.cs Outdated
Comment thread docs/docs/usage/GenericComm.md Outdated
Comment thread docs/docs/usage/GenericComm.md Outdated
Copy link
Copy Markdown
Contributor

Copilot AI commented May 2, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • crl.entrust.net
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/Essentials/Essentials/PepperDash.Essentials.4Series.sln --packages /tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/emptyFakeDotnetRoot /p:AllowMissingPrunePackageData=true (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/8E3C38744AF97AEA71D98A0334D7EC97/missingpackages_workingdir --packages /tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • ocsp.entrust.net
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/Essentials/Essentials/PepperDash.Essentials.4Series.sln --packages /tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/emptyFakeDotnetRoot /p:AllowMissingPrunePackageData=true (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/8E3C38744AF97AEA71D98A0334D7EC97/missingpackages_workingdir --packages /tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /tmp/codeql-scratch-34409fe8f58e31ec/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

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.

3 participants