Skip to content

Comments

chore: decreased long poll timeout from 60s to 25s + race condition fix#16

Merged
SeverinAlexB merged 4 commits intomasterfrom
chore/set-sane-longpoll-timeout
Jan 21, 2026
Merged

chore: decreased long poll timeout from 60s to 25s + race condition fix#16
SeverinAlexB merged 4 commits intomasterfrom
chore/set-sane-longpoll-timeout

Conversation

@SeverinAlexB
Copy link
Collaborator

@SeverinAlexB SeverinAlexB commented Jan 21, 2026

Timeout Decrease

So far, ln verification await timeout was 60s. This is higher than a lot of default request timeouts like on nginx for example. The request therefore has a high chance to timeout due to the proxy instead of the actual timeout in homegate.

This PR sets the homegate timeout to 25s which is lower than the default timeout of 30s that most proxies including nginx use. This avoids needing to manually configuring nginx.

This will not impact Franky in any way as Franky just keeps polling as long as it's needed.

Fix Race Condition

Also fixes two unlikely but possible race condition.

@SeverinAlexB SeverinAlexB requested a review from 86667 January 21, 2026 12:38
@SeverinAlexB SeverinAlexB changed the title chore: decreased long poll timeout from 60s to 25s chore: decreased long poll timeout from 60s to 25s + race condition fix Jan 21, 2026
@SeverinAlexB SeverinAlexB merged commit e6fb13e into master Jan 21, 2026
2 checks passed
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.

2 participants