containerd/pkg
Antonio Ojea 11a78d9d0f
don't use socat for port forwarding
use goroutines to copy the data from the stream to the TCP
connection, and viceversa, removing the socat dependency.

Quoting Lantao Liu, the logic is as follow:

When one side (either pod side or user side) of portforward
is closed, we should stop port forwarding.

When one side is closed, the io.Copy use that side as source will close,
but the io.Copy use that side as dest won't.

Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2020-05-09 00:54:30 +02:00
..
annotations use containerd/project header test 2020-04-22 19:35:37 -05:00
api/runtimeoptions/v1 use containerd/project header test 2020-04-22 19:35:37 -05:00
atomic use containerd/project header test 2020-04-22 19:35:37 -05:00
config use containerd/project header test 2020-04-22 19:35:37 -05:00
constants use containerd/project header test 2020-04-22 19:35:37 -05:00
containerd use containerd/project header test 2020-04-22 19:35:37 -05:00
ioutil use containerd/project header test 2020-04-22 19:35:37 -05:00
netns use containerd/project header test 2020-04-22 19:35:37 -05:00
os use containerd/project header test 2020-04-22 19:35:37 -05:00
registrar use containerd/project header test 2020-04-22 19:35:37 -05:00
server don't use socat for port forwarding 2020-05-09 00:54:30 +02:00
store use containerd/project header test 2020-04-22 19:35:37 -05:00
util use containerd/project header test 2020-04-22 19:35:37 -05:00