Deprecate bufferSize

This commit is contained in:
9seconds
2021-11-28 17:58:14 +03:00
parent bae5407372
commit d19cfb1df4
11 changed files with 30 additions and 55 deletions
+6
View File
@@ -33,10 +33,16 @@ const (
// request.
DefaultHTTPTimeout = 10 * time.Second
// Deprecated:
//
// DefaultBufferSize defines a TCP buffer size. Both read and write, so
// for real size, please multiply this number by 2.
DefaultBufferSize = 16 * 1024 // 16 kib
// DefaultTCPKeepAlivePeriod defines a time period between 2
// consequitive probes.
DefaultTCPKeepAlivePeriod = 10 * time.Second
// ProxyDialerOpenThreshold is used for load balancing SOCKS5 dialer
// only.
//