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

TykTechnologies / tyk / 7246 / 2

Build:
DEFAULT BRANCH: master
Ran 30 Aug 2019 10:49AM UTC
Files 81
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

30 Aug 2019 10:36AM UTC coverage: 60.262% (+0.7%) from 59.52%
LATEST_GO=true

push

travis-ci

buger
 tcp proxy (#2426)

The current code adds initial code for TCP proxy which multiplex to different services. 

Additionally refactored all code related to how we start a web server, in particular now you can run multiple APIs on different ports, and Tyk will dynamically open or close port listeners.

Added 2 new fields to API definition: `listen_port` and `protocol`. 
Valid protocol values: "", "http", "https", "tcp", "tls". 
By default, protocol is selected based on `http_server_options.use_ssl`, and can be either http or https.

Additionally in order to tell that your upstream should be `tcp` or `tls` one, in target URL you can specify protocol like this: "tls://upstream:<port>". So you can have GW listening on TLS, but pointing to TCP upstreaming, or the other way. 

Example service description:
```
"listen_port": 30001,
"protocol": "tls",
"certificate": ["<cert-id>"],
"proxy": {
    "target_url": "tls://upstream:9191"
}
```

All the TLS related features, like mutual TLS or certificate pinning work as expected. 

Adding "listen_port", means that you can now start HTTPS server on one port, HTTP on another port, and some TCP services on another port as well. The only requirement that each port should serve the same protocol (GW has checks preventing it).

Additionally, TCP proxying, support multiplexing based on SNI information, e.g. you can serve multiple TCP services on different domains, pointing to different upstream. 

- [x] Analytics support
- [x] ~Way to specific fixed ports and protocols they are support~Way to specific fixed ports and protocols they don't  support
- [x] Support load balancing and service discovery
- [x] Health checks
- [x] Graceful restarts
- [x] Proxy protocol https://github.com/TykTechnologies/tyk/issues/2300

9780 of 16229 relevant lines covered (60.26%)

137.07 hits per line

Source Files on job 7246.2 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 35
  • Source Changed 14
  • Coverage Changed 34
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6587
  • Travis Job 7246.2
  • 56de48ca on github
  • Prev Job for LATEST_GO=true on master (#7240.2)
  • Next Job for LATEST_GO=true on master (#7259.2)
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