pytogo / portforward

Kubernetes Port-Forward Go-Edition For Python
https://portforward.readthedocs.io
MIT License
17 stars 6 forks source link

Cannot maintain 2 portforwards to the same pod #23

Closed atti92 closed 1 year ago

atti92 commented 1 year ago

Description

Opening 1 portforward works fine. Opening 2 portforwards on different pods works fine. Opening 2 different port forwards on 1 pod, closes the first one initiated.

What I Did

import portforward
with portforward.forward("namespace", "pod-0", port1, port1):
    with portforward.forward("namespace", "pod-0", port2, port2):
        # doing some connection to those ports, port2 success, port1 is refused. (switching the order switches the working ports)
corka149 commented 1 year ago

The feature will be released with version 0.5.0 today.

Thx for the issue!

atti92 commented 1 year ago

Thanks it's working fine :)