aprovpn / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

java.io.IOException when openvpn exits due inactivity #307

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add configuration option "inactive 100 1024" to the config file. This causes 
openvpn to exit, when there is less than 1 kb traffic in 100 seconds.
2. connect
3. wait for the timeout

What is the expected output? What do you see instead?
The log should recognize, that openvpn has exited normally. Instead it shows a 
java.io.IOException.

What mobile phone are you using?
Nexus 5 (hammerhead) 

Which Android Version and stock ROM or aftermarket like cyanogenmod?
Android 5.0, Android API 21, version 0.6.21

LOG output:
2014-11-26 13:39:47 Inactivity timeout (--inactive), exiting
2014-11-26 13:39:47 TCP/UDP: Closing socket
2014-11-26 13:39:47 Sorry, deleting routes on Android is not possible. The 
VpnService API allows routes to be set on connect only.
2014-11-26 13:39:47 Closing TUN/TAP interface
2014-11-26 13:39:47 Local IP address unset but adding route?! This is broken! 
Please contact author with log
2014-11-26 13:39:47 SIGTERM[soft,inactive] received, process exiting
2014-11-26 13:39:47 MANAGEMENT: >STATE:1417005587,EXITING,inactive,,
2014-11-26 13:39:47 Unbehandelte Ausnahme: Connection reset by peer

java.io.IOException: Connection reset by peer
        at android.net.LocalSocketImpl.readba_native(Native Method)
        at android.net.LocalSocketImpl.access$400(LocalSocketImpl.java:33)
        at android.net.LocalSocketImpl$SocketInputStream.read(LocalSocketImpl.java:101)
        at android.net.LocalSocketImpl$SocketInputStream.read(LocalSocketImpl.java:87)
        at de.blinkt.openvpn.core.OpenVpnManagementThread.run(OpenVpnManagementThread.java:137)
        at java.lang.Thread.run(Thread.java:818)

Original issue reported on code.google.com by thenk...@gmail.com on 26 Nov 2014 at 12:57

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 4ce8a39af3f7.

Original comment by arne@rfc2549.org on 18 Dec 2014 at 10:13