Skip to content

Commit

Permalink
Fix proxying long polling requests.
Browse files Browse the repository at this point in the history
Fixes #2039

This commit fixes long polling cases with teleport
for K8s that did not work because flush was not
called during io.Copy commands.
  • Loading branch information
klizhentas committed Jun 29, 2018
1 parent a527cdb commit 026e8e4
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 16 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ ignored = ["github.com/Sirupsen/logrus"]
version = ">=0.0.2, <=1.0.0-gc98f59f"

[[constraint]]
version = "1.0.1"
version = "1.0.2"
name = "github.com/gravitational/oxy"

[[constraint]]
Expand Down
1 change: 1 addition & 0 deletions lib/kube/proxy/forwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ func (f *Forwarder) newClusterSession(ctx authContext) (*clusterSession, error)
tlsConfig.BuildNameToCertificate()

fwd, err := forward.New(
forward.FlushInterval(100*time.Millisecond),
forward.RoundTripper(f.newTransport(ctx.cluster.Dial, tlsConfig)),
forward.WebsocketDial(ctx.cluster.Dial),
forward.Logger(logrus.StandardLogger()),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 026e8e4

Please sign in to comment.