ooni-probe-cli/internal/cmd/oohelperd
Simone Basso b8cc548d41
fix(oohelperd): enforce timeout for each measurement step (#888)
While working on https://github.com/ooni/probe/issues/2237, I noticed
there's no enforced timeout for measurement tasks.

So, this diff introduces the following timeouts:

1. use a 4 seconds timeout for the DNS lookup;

2. use a 10 seconds timeout for TCP;

3. use a 15 seconds timeout for HTTP.

They are a bit stricter than what we have on the probe because the TH
should supposedly have better bandwidth and connectivity.
2022-08-28 12:02:17 +02:00
..
dns_test.go refactor(oohelperd): flatten package hierarchy (#834) 2022-07-05 19:10:39 +02:00
dns.go fix(oohelperd): enforce timeout for each measurement step (#888) 2022-08-28 12:02:17 +02:00
handler_test.go refactor(oohelperd): improve tests implementation (#835) 2022-07-05 20:25:18 +02:00
handler.go refactor(oohelperd): flatten package hierarchy (#834) 2022-07-05 19:10:39 +02:00
http_test.go refactor(oohelperd): improve tests implementation (#835) 2022-07-05 20:25:18 +02:00
http.go fix(oohelperd): enforce timeout for each measurement step (#888) 2022-08-28 12:02:17 +02:00
main_test.go refactor(oohelperd): improve tests implementation (#835) 2022-07-05 20:25:18 +02:00
main.go fix(oohelperd): by default listen on localhost (#887) 2022-08-28 11:54:15 +02:00
measure.go refactor(oohelperd): flatten package hierarchy (#834) 2022-07-05 19:10:39 +02:00
README.md refactor: move more commands to internal/cmd (#207) 2021-02-03 12:23:15 +01:00
tcpconnect_test.go refactor(oohelperd): flatten package hierarchy (#834) 2022-07-05 19:10:39 +02:00
tcpconnect.go fix(oohelperd): enforce timeout for each measurement step (#888) 2022-08-28 12:02:17 +02:00

oohelperd

This directory contains the source code of the Web Connectivity test helper written in Go.