Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
947 views
in Technique[技术] by (71.8m points)

debian - Delay in Internet connection when starting / stopping OpenVPN

I have an OpenVPN server which is always running in the cloud, I can connect to it using an .ovpn configuration file from a client.

This client is a Debian OS and goes to the Internet via a Modem connection (SIM). Moreover, the client is executing a Java application which is connecting to an MQTT server via Eclipse Paho library.

When I start / stop the VPN service on the client, I notice (in the logs of the Java application) a significant delay in the MQTT reconnection (of the order of few minutes). What happens is that the MQTT connection drops, then there is a delay of 2 / 3 minutes, then again a restart. I have also a significant delay in executing PING on the client just after starting / stopping the VPN (for example, ping google.com takes at least 5 seconds to give the first response).

Problem is that my MQTT connection needs to send data about every minute, so the reconnection delay is actually impacting the correct functioning of the Java application.

I'd like to get some insight in the problems that might arise with this configuration and some help on where to find info & troubleshoot the problem.

Please ask if you need more details.

Thanks in advance.

question from:https://stackoverflow.com/questions/65682229/delay-in-internet-connection-when-starting-stopping-openvpn

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...