fix: too-small scrape request packets may trip SYN flood detection (#3236)

Fixes #964.
This commit is contained in:
Charles Kerr
2022-06-08 17:51:54 -05:00
committed by GitHub
parent af5db6e6f2
commit 00386d03a6

View File

@@ -344,8 +344,8 @@ void tr_tracker_http_announce(
auto options = tr_web::FetchOptions{ url.sv(), onAnnounceDone, d }; auto options = tr_web::FetchOptions{ url.sv(), onAnnounceDone, d };
options.timeout_secs = 90L; options.timeout_secs = 90L;
options.sndbuf = 1024; options.sndbuf = 4096;
options.rcvbuf = 3072; options.rcvbuf = 4096;
session->web->fetch(std::move(options)); session->web->fetch(std::move(options));
} }