OpenVPN / OpenVPN/openvpn3

connect error: buffer_full : allocated=1 size=0 offset=512 capacity=3088 newcap=7696

Open
#143 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

I could connect openvpn by test cli.cpp in Project ovpncli. But every time I connect successfully, it will be disconnect in 10 seconds. I notice the error message "buffer_full" and I don'y know if I should change some setting.
Before I debug the cli.cpp I firstly install wintun driver and successfully install a new wintun driver tunnel. I also could connect ovpn by "dev tun" in my profile. Is there any methods to stay the connection? Thank you in advance.

Here is the log from command line:

Successfully flushed the DNS Resolver Cache.
Wed Jan 27 17:10:03 2021 Connected via wintun
Wed Jan 27 17:10:03 2021 EVENT: CONNECTED 219.100.37.92:443 (219.100.37.92) via /TCPv4 on wintun/10.238.205.205/ gw=[10.238.205.206/]
Wed Jan 27 17:10:13 2021 netsh interface ip delete address 54 10.238.205.205 gateway=all store=active

netsh interface ip delete route 219.100.37.92/32 15 10.64.25.1 store=active
Ok.

netsh interface ip delete route 0.0.0.0/1 54 10.238.205.206 store=active
Ok.

netsh interface ip delete route 128.0.0.0/1 54 10.238.205.206 store=active
Ok.

netsh interface ip delete dnsservers 54 all validate=no

NRPT::ActionDelete
ActionWFP openvpn_app_path=E:\OpenVPN3\build\test\ovpncli\Debug\ovpncli.exe tap_index=54 enable=0
WFPEngine closed
ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.
Wed Jan 27 17:10:13 2021 EVENT: DISCONNECTED
connect error: buffer_full : allocated=1 size=0 offset=512 capacity=3088 newcap=7696
Thread finished
STATS:
BYTES_IN : 42886
BYTES_OUT : 44901
PACKETS_IN : 94
PACKETS_OUT : 311

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 test cli.cpp in Project ovpncli and reproduce the connection using the reported wintun setup. Trace the disconnect occurring about 10 seconds after EVENT: CONNECTED and inspect the reported buffer_full error alongside the command-line log. Done means identifying why the connection closes and keeping it active without the buffer error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking
Issue type
Bug
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.