[PR #893] [MERGED] Check if the cancel function was set before using it #14475

Closed
opened 2026-08-05 03:05:41 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/893
Author: @mlsmaycon
Created: 5/23/2023
Status: Merged
Merged: 5/23/2023
Merged by: @mlsmaycon

Base: mainHead: fix/avoid-panic-when-cancel-is-not-set


📝 Commits (1)

  • a99ff5d Check if the cancel function was set before using it

📊 Changes

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

View changed files

📝 client/server/server.go (+3 -1)

📄 Description

Describe your changes

in some cases an IDP device flow expiration time might be shorter than 90s we should check if the cancel context was set before using it

We will need a follow-up to identify and document the IDP with lower defaults.

fixes #890

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/netbirdio/netbird/pull/893 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 5/23/2023 **Status:** ✅ Merged **Merged:** 5/23/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/avoid-panic-when-cancel-is-not-set` --- ### 📝 Commits (1) - [`a99ff5d`](https://github.com/netbirdio/netbird/commit/a99ff5d56f694fe2740556a5fb69cc3b24b6e714) Check if the cancel function was set before using it ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/server/server.go` (+3 -1) </details> ### 📄 Description ## Describe your changes in some cases an IDP device flow expiration time might be shorter than 90s we should check if the cancel context was set before using it We will need a follow-up to identify and document the IDP with lower defaults. ## Issue ticket number and link fixes #890 ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:05:41 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14475