Go SDK should support reconnect and auto login configuration
- Dominant language
- Rust
- Stars
- 4.9k
- Forks
- 432
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 173
Description
### Description
Related to #2964
Currently, Go SDK support request timeout via `context.Context`, but it doesn't support reconnect and auto-login. The connection would be dead after context.Cancel/context.Timeout/io error. User have to manually call Connect() and Login() to reestablish their session.
We need to implement the auto login/reconnect logic for Go SDK.
### Affected area / component
Go SDK
### Proposed solution
_No response_
### Alternatives considered
_No response_
### Contribution
- [x] I'm willing to submit a pull request to implement this feature
### Good first issue
- [ ] I think this could be a good first issue for a new contributor
Contributor guide
Research direction
The issue names the Go SDK and its Connect() and Login() entry points; start by tracing how context cancellation, timeouts, and I/O errors terminate the connection. Define the reconnect and auto-login behavior around those paths, then verify that sessions recover without requiring callers to invoke Connect() and Login() manually.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100