@@ -39,7 +39,7 @@ const (
39
39
defaultUserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
40
40
windowsUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
41
41
darwinUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
42
- httpTimeout = 20 * time .Second
42
+ httpTimeout = 10 * time .Second
43
43
handshakeTimeout = 5 * time .Second
44
44
)
45
45
@@ -93,7 +93,7 @@ func init() {
93
93
DialContext : amassnet .DialContext ,
94
94
MaxIdleConns : 200 ,
95
95
MaxConnsPerHost : 50 ,
96
- IdleConnTimeout : 30 * time .Second ,
96
+ IdleConnTimeout : 10 * time .Second ,
97
97
TLSHandshakeTimeout : handshakeTimeout ,
98
98
ExpectContinueTimeout : 5 * time .Second ,
99
99
TLSClientConfig : & tls.Config {InsecureSkipVerify : true },
@@ -254,7 +254,7 @@ func Crawl(ctx context.Context, u string, scope []string, max int, callback func
254
254
UserAgent : UserAgent ,
255
255
LogDisabled : true ,
256
256
ConcurrentRequests : 5 ,
257
- RequestDelay : time .Second ,
257
+ RequestDelay : 50 * time .Millisecond ,
258
258
RequestDelayRandomize : true ,
259
259
ParseFunc : func (g * geziyor.Geziyor , r * client.Response ) {
260
260
select {
0 commit comments