yndu13 cdfd54484c fix: improve DNS robustness and refine timeout logic
- Fix DNS resolution failure by prioritizing CGO resolver (PreferGo: false)
  to stay consistent with system tools like curl when /etc/resolv.conf
  contains invalid nameservers.
- Fix logic bug in getLocalAddr where LocalAddr string was incorrectly
  cast to []byte instead of being parsed via net.ParseIP.
- Refactor HTTP timeout logic:
    * Set httpClient.Timeout to ConnectTimeout + ReadTimeout.
    * Set http.Transport.ResponseHeaderTimeout to ReadTimeout for
      granular control.
- Modernize net.Dialer by removing deprecated DualStack field (now
  enabled by default in Go 1.12+).
- Add unit tests for LocalAddr parsing, dial context, and timeout
  configuration in both tea and dara packages.
2026-01-06 17:13:59 +08:00
2025-02-12 16:14:35 +08:00
2025-03-27 14:47:24 +08:00
2024-11-14 22:05:43 +08:00
2024-11-14 22:05:43 +08:00
2025-02-12 14:27:23 +08:00
2025-02-12 16:10:47 +08:00
2020-01-02 12:28:37 +08:00
2024-11-14 22:05:43 +08:00
2023-04-26 11:21:46 +08:00
2023-04-26 11:21:33 +08:00

Tea

Latest Stable Version codecov Go CI

This project is used for support Darabonba OpenAPI DSL. It's a low-level library for http request.

License

Apache-2.0

Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

S
Description
No description provided
Readme 451 KiB
Languages
Go 100%