[PR #1483] [CLOSED] Bugfix: when db_type is set to postgres, tailscale client will be hang up for a long time #2142

Closed
opened 2025-12-29 03:19:57 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/1483
Author: @Yxnt
Created: 5/31/2023
Status: Closed

Base: mainHead: bugfix


📝 Commits (2)

  • f98cd91 bugfix: client login hungup when db_type is postgres
  • 0bad2f1 bugfix: modify client expiry time

📊 Changes

8 files changed (+26 additions, -10 deletions)

View changed files

📝 .gitignore (+2 -0)
📝 Makefile (+1 -1)
📝 config-example.yaml (+4 -0)
📝 hscontrol/config.go (+8 -2)
📝 hscontrol/db/machine.go (+2 -4)
📝 hscontrol/grpcv1.go (+3 -1)
📝 hscontrol/protocol_common.go (+4 -2)
📝 hscontrol/protocol_common_poll.go (+2 -0)

📄 Description

  • read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Fixes #764

When db_type is set to postgres, tailscale login and tailscale up can hang up for a long time. because expiry time is 0001-01-01 00:00:00.

I'm not sure this change is make sense, but it‘s worked.


🔄 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/juanfont/headscale/pull/1483 **Author:** [@Yxnt](https://github.com/Yxnt) **Created:** 5/31/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bugfix` --- ### 📝 Commits (2) - [`f98cd91`](https://github.com/juanfont/headscale/commit/f98cd9157fd6dc1de8fd99f8d245f8b8ca9c4ea9) bugfix: client login hungup when db_type is postgres - [`0bad2f1`](https://github.com/juanfont/headscale/commit/0bad2f1eb5c760ac18aa3fa508f5fe6ba3cbf53a) bugfix: modify client expiry time ### 📊 Changes **8 files changed** (+26 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) 📝 `Makefile` (+1 -1) 📝 `config-example.yaml` (+4 -0) 📝 `hscontrol/config.go` (+8 -2) 📝 `hscontrol/db/machine.go` (+2 -4) 📝 `hscontrol/grpcv1.go` (+3 -1) 📝 `hscontrol/protocol_common.go` (+4 -2) 📝 `hscontrol/protocol_common_poll.go` (+2 -0) </details> ### 📄 Description <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> <!-- Please tick if the following things apply. You… --> - [x] read the [CONTRIBUTING guidelines](README.md#contributing) - [ ] raised a GitHub issue or discussed it on the projects chat beforehand - [ ] added unit tests - [ ] added integration tests - [ ] updated documentation if needed - [ ] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> Fixes #764 When db_type is set to postgres, `tailscale login` and `tailscale up` can hang up for a long time. because expiry time is `0001-01-01 00:00:00`. I'm not sure this change is make sense, but it‘s worked. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:19:57 +01:00
adam closed this issue 2025-12-29 03:19:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2142