OpenVPN / OpenVPN/openvpn3

What is the correct way of using connect and stop function

Open
#212 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.2k
Forks
467
PR merge metrics
No merged PRs in 30d

Description

Hello.
I'm using the client api so I can make a simple client using this library. I use the function "connect" (in separate thread) to connect after using eval_config to add the configurations.
then when I stop, I use the function "stop"

The problem is that when I want to connect again (i.e.: call connect again after stopping), the function returns immediately,
How do I reconnect? or what is the mistake I'm doing in connecting/stopping ?
Thanks in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the client API entry points connect, stop, and eval_config, tracing the lifecycle for a second connection after stop. Done means the required call sequence and reconnect behavior are documented or reproduced with a minimal client example.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, networking
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.