[
https://issues.apache.org/jira/browse/AIRFLOW-6494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009264#comment-17009264
]
Jianchao Yang commented on AIRFLOW-6494:
----------------------------------------
Fixed in [https://github.com/apache/airflow/pull/7088]
> SSH host_proxy has to be fresh
> ------------------------------
>
> Key: AIRFLOW-6494
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6494
> Project: Apache Airflow
> Issue Type: Bug
> Components: contrib
> Affects Versions: 1.10.1, 2.0.0
> Reporter: Jianchao Yang
> Priority: Major
>
> AIRFLOW-1762 moved `host_proxy` in contrib/hooks/ssh_hook.py to __init__,
> which causes the proxy socket to be closed whenever the SSH client is
> closed—which happens every time when exiting `with get_conn() as client`.
> The inconsistency between SSH Client and ProxyCommand's lifecycles would
> result in "Broken Pipe" error (because the proxy socket has already been
> closed!) when the same hook instance is used multiple time (often needed in
> some custom operators).
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)