• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 2923

Build:
DEFAULT BRANCH: master
Ran 12 Sep 2017 09:57AM UTC
Jobs 1
Files 84
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2923

push

travis-ci

buger
revproxy: refactor default transport

Remove the TykTransporter wrapper around the http.Transport. Its only
purpose was SetTimeout, which was only used once and was very limited -
it did not override the Dial family of methods.

Second, be consistent about overriding and using DialContext instead of
Dial. Dial is defined as deprecated, and many libraries including std
will ignore it if DialContext is set. For now, use context.TODO() when
calling, which will equal to the previous behavior.

Third, sync the default transport with http.DefaultTransport - namely,
adding fields like MaxIdleConns and DualStack.

Finally, use a separate http.Transport object per proxied request.
Before we were modifying and using a global in-place, which meant that
concurrent requests could run into race conditions and misbehave if
requiring different transport tweaks.

This also fixes one of the last two staticcheck warnings, stemming from
handler_websocket's use of net.Dial.

Updates #495 - we will need a consistent default transport to cache the
DNS queries, and this one seems logical.

24 of 24 new or added lines in 2 files covered. (100.0%)

5927 of 13504 relevant lines covered (43.89%)

0.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
100.0
handler_websocket.go
3
100.0
reverse_proxy.go

Coverage Regressions

Lines Coverage ∆ File
1
100.0
handler_websocket.go
Jobs
ID Job ID Ran Files Coverage
2 2923.2 (LATEST_GO=true) 12 Sep 2017 09:58AM UTC 0
43.89
Travis Job 2923.2
Source Files on build 2923
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2923
  • b23bc18a on github
  • Prev Build on master (#2920)
  • Next Build on master (#2924)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc