Skip to content

Commit

Permalink
fix(telegram): make sure tcp blocking is computed correctly
Browse files Browse the repository at this point in the history
Closes #827

Part of #356
  • Loading branch information
bassosimone committed Jul 23, 2020
1 parent 4c8d1d2 commit 9c19169
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions experiment/telegram/telegram.go
Expand Up @@ -118,8 +118,16 @@ func (m Measurer) Run(ctx context.Context, sess model.ExperimentSession,
{Target: "http://149.154.167.91:443/", Config: urlgetter.Config{Method: "POST"}},
{Target: "http://149.154.171.5:443/", Config: urlgetter.Config{Method: "POST"}},

{Target: "http://web.telegram.org/", Config: urlgetter.Config{FailOnHTTPError: true}},
{Target: "https://web.telegram.org/", Config: urlgetter.Config{FailOnHTTPError: true}},
// Here we need to provide the method explicitly. See
// https://github.com/ooni/probe-engine/issues/827.
{Target: "http://web.telegram.org/", Config: urlgetter.Config{
Method: "GET",
FailOnHTTPError: true,
}},
{Target: "https://web.telegram.org/", Config: urlgetter.Config{
Method: "GET",
FailOnHTTPError: true,
}},
}
multi := urlgetter.Multi{Begin: time.Now(), Getter: m.Getter, Session: sess}
testkeys := NewTestKeys()
Expand Down

0 comments on commit 9c19169

Please sign in to comment.