Files
chenhg5-cc-connect/core/httpclient.go
chenhg5 e8e39413e8 refactor(session): add context-aware event sending and secure arg logging
Add context-aware select statements when sending events to prevent blocking on closed channels. Implement secure argument logging using RedactArgs to mask sensitive flags. Add atomic file writes and locks for config safety. Improve session handling with mutex protection and deduplication checks.

generated by llmgit

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-04 12:38:37 +08:00

12 lines
189 B
Go

package core
import (
"net/http"
"time"
)
// HTTPClient is a shared HTTP client with a reasonable timeout for platform use.
var HTTPClient = &http.Client{
Timeout: 30 * time.Second,
}