pantheon-deprecated / terminus-deprecated

Deprecated CLI for Pantheon. Do not install. Current project:
https://github.com/pantheon-systems/cli
82 stars 24 forks source link

Tunnels take a while to close; notices appear later #132

Open cboyden opened 10 years ago

cboyden commented 10 years ago

Running psite-tclose does not appear to close the tunnel right away. The tunnel times out after about 10 minutes with a message like "Connection to dbserver.test.caf27d7c-96fd-f87f-04c5-9dc2b3dbfdb2.drush.in closed by remote host."

$ drush psite-tunnels

 PID   Since   Site          Env   Type      Local  Remote
 2443  3:17PM  webaccess     test  dbserver  10002  10002
 2583  3:20PM  ucpd          test  dbserver  14751  14751
 2723  3:22PM  websolutions  test  dbserver  11692  11692

$ drush psite-tclose webaccess test
Tunnel closed for pid: webaccess                      [ok]
$ drush psite-tunnels

 PID   Since   Site          Env   Type      Local  Remote
 2443  3:17PM  webaccess     test  dbserver  10002  10002
 2583  3:20PM  ucpd          test  dbserver  14751  14751
 2723  3:22PM  websolutions  test  dbserver  11692  11692
mikevanwinkle commented 10 years ago

I haven't had a chance to look into this yet, but I will. Thanks for reporting. I'm marking it as "question" simply because I haven't confirmed it yet. But I suspect it's a bug.

bwood commented 10 years ago

If you simply use psite-tclose with no arguments, all tunnels are closed immediately.

[bwood@mbp migration]$ drush psite-tunnels

 PID    Since   Site                   Env  Type      Local  Remote
 32471  5:27PM  openucb-469-budget-bw  dev  dbserver  15608  15608

[bwood@mbp migration]$ drush psite-tclose
All tunnels closed                                                                                         [ok]
[bwood@mbp migration]$ drush psite-tunnels

 PID  Since  Site  Env  Type  Local  Remote

[bwood@mbp migration]$