Skip to content

ShudiLi/haproxy-timeout-tunnel

 
 

Repository files navigation

Prerequisites

To run the test WebSocket client on your machine, make sure you have the following packages installed:

$ sudo yum install -y nodejs
$ npm install websocket

Deploy test workload

$ ./deploy.sh

Run test client targeting secure edge terminated route

$ ./run-cli.sh
WebSocket Client Connected
echo-protocol Connection Closed

real	0m5.611s
user	0m0.121s
sys	0m0.016s

Note: default tunnel timeout is used (5s)

Change route to unsecured

$ oc apply -f ./unsecured-route.yaml

Run test client targeting unsecured route

$ ./run-cli.sh
WebSocket Client Connected
echo-protocol Connection Closed

real	0m15.387s
user	0m0.103s
sys	0m0.022

Note: route's tunnel timeout is used (15s)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.1%
  • Shell 16.9%