Record the transport failure when a report host cannot be reached #452

Open
HandshakeHackin wants to merge 1 commit from upstream-pr/452 into v26124
HandshakeHackin commented 2026-12-01 17:20:11 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-12-01T17:20:11Z.


What this changes

Read the outcome of an HTTP request through its task awaiter so the launcher can log why a report host was unreachable. Socket failures include a language-independent error code. A timed-out request records the configured timeout, and the next host is still tried.

Why

In #420, three hosts logged the localized equivalent of “You cannot call a method on a null-valued expression.” I reproduced the same message from the v26.12.4 release script in its standalone upload runspace using a refused local connection and a timed-out local HTTP server.

Verification

Using Linux PowerShell 7.4.19 and synthetic bytes on loopback, the candidate recorded ConnectionRefused for both successive hosts in en-US and zh-CN. A second test exercised a one-second timeout, an HTTP 500 response and a successful third host in order. It returned the successful link. Stock reported the same generic null error for the timeout. The HTTP test used no external host or player data. Native Windows verification is pending.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5590790558 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/452). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-12-01T17:20:11Z. --- ## What this changes Read the outcome of an HTTP request through its task awaiter so the launcher can log why a report host was unreachable. Socket failures include a language-independent error code. A timed-out request records the configured timeout, and the next host is still tried. ## Why In #420, three hosts logged the localized equivalent of “You cannot call a method on a null-valued expression.” I reproduced the same message from the v26.12.4 release script in its standalone upload runspace using a refused local connection and a timed-out local HTTP server. ## Verification Using Linux PowerShell 7.4.19 and synthetic bytes on loopback, the candidate recorded ConnectionRefused for both successive hosts in en-US and zh-CN. A second test exercised a one-second timeout, an HTTP 500 response and a successful third host in order. It returned the successful link. Stock reported the same generic null error for the timeout. The HTTP test used no external host or player data. Native Windows verification is pending.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/452:upstream-pr/452'
git switch 'upstream-pr/452'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'v26124'
git merge --no-ff 'upstream-pr/452'
git switch 'upstream-pr/452'
git rebase 'v26124'
git switch 'v26124'
git merge --ff-only 'upstream-pr/452'
git switch 'upstream-pr/452'
git rebase 'v26124'
git switch 'v26124'
git merge --no-ff 'upstream-pr/452'
git switch 'v26124'
git merge --squash 'upstream-pr/452'
git switch 'v26124'
git merge --ff-only 'upstream-pr/452'
git switch 'v26124'
git merge 'upstream-pr/452'
git push origin 'v26124'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
PastiiJay/klbf-lab!452
No description provided.