jumaris / sshtunnel

Automatically exported from code.google.com/p/sshtunnel
GNU General Public License v3.0
1 stars 0 forks source link

存在打开2个ssh连接的可能 #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
观察后台发现,某些情况下,存在打开2个ssh连接的可能

在手机的进程管理中,杀掉sshtunnel才会断开隐藏的连接。

Original issue reported on code.google.com by ahfei.m...@gmail.com on 18 Apr 2011 at 3:21

GoogleCodeExporter commented 8 years ago
在 Android 中 Service 
的实例只会有一个,理论上不存在这种情况。另外你说看到��
�个ssh,怀疑另一个是切到后台的 Activity 罢了。

Original comment by max.c...@gmail.com on 18 Apr 2011 at 3:24

GoogleCodeExporter commented 8 years ago
的确是另一个Activity,因为我看到有2个通知图标。
这种情况通常出现在网络故障/切换的时候

Original comment by ahfei.m...@gmail.com on 18 Apr 2011 at 4:06

GoogleCodeExporter commented 8 years ago
遇到这种情况,手动 clear notification 
就可以了。这两个通知图标都是同一个 context 
里面的,不影响之后的使用。

Original comment by max.c...@gmail.com on 18 Apr 2011 at 4:09

GoogleCodeExporter commented 8 years ago
勾上自动连接后,将手机待机后,特别容易出现
因手机会断开wifi,切换到gprs

Original comment by ahfei.m...@gmail.com on 18 Apr 2011 at 7:52

GoogleCodeExporter commented 8 years ago
你说的两个 Notification 中的一个只在待机时网络断开后 connect 
fail 的 ALERT 罢了,另一个 ONGOING_EVENT  才是 Service

Original comment by lvwind.s...@gmail.com on 18 Apr 2011 at 10:10

GoogleCodeExporter commented 8 years ago

Original comment by max.c...@gmail.com on 31 Jan 2012 at 8:37