Skip to content

Conversation

@rehanvdm
Copy link
Owner

@rehanvdm rehanvdm commented Feb 7, 2025

Fixes rehanvdm/tailscale-lambda-extension#4

This error: Error: Socks5 proxy rejected connection - Failure can happen during a cold start or a normal function call of the lambda. I believe that even though the tailscale process is running, the socks5 proxy has not fully initialized. This is more likely to happen on cold starts, it might also have to do with several logins to the tailscale networks at once.

In my tests only 1 retry attempt was needed, the 10ms delay was enough. We might be able to go lower, but I have not tested it. If we could go as low as 1ms or 0ms, it might mean the first request wakes something up/resets something, just a hunch. For now, I'm happy with a 10ms retry whenever this intermittent error happens.

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