Bug #826

Status > OpenVPN hangs when using TCP w/OpenVPN Int. "any"

Added by Chris Buechler about 9 years ago. Updated over 8 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected Version:
Affected Architecture:


When using TCP with OpenVPN, even where specifying 'local' to bind to a specific IP, the server binds itself to as well. Then the Status > OpenVPN page hangs because the OpenVPN server is binding to the management port on So the status page actually connects to the OpenVPN server rather than the management interface, which returns nothing to its queries.

Three issues here.
1) If the OpenVPN management interface does not respond, it should give up after several seconds, rather than completely hang up the web interface.
2) When using "any" with TCP, the management interface must use a different port than the one OpenVPN is using.
3) why is the server apparently binding to where it shouldn't be (or is that not actually the issue)

Associated revisions

Revision a8abc4b3 (diff)
Added by Jim Pingle about 9 years ago

End processing when we receive an ERROR line. Part of ticket #826

Revision 19e3d450 (diff)
Added by Ermal Luçi about 9 years ago

Ticket #826. Add timeout of 1 second for all read/write actions performed on the socket. This should fix point 1) on the ticket.

Revision 71ca2cb2 (diff)
Added by Ermal Luçi about 9 years ago

Ticket #826. Convert to unix domain sockets for management interface so we do not have problems when interface is any.

Revision b0140675 (diff)
Added by Ermal Luçi about 9 years ago

Ticket #826. Add more bandage to notice when a reading on socket timeouts.


#1 Updated by Jim Pingle about 9 years ago

The binding seems to be correct, but the status connection wasn't being parsed properly.

The status command to the management daemon doesn't work correctly for static key servers, you get back this error:

ERROR: The 'status' command is not supported by the current daemon mode

#2 Updated by Ermal Luçi about 9 years ago

  • Status changed from New to Feedback

#3 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF