yaa110 / async-tun Goto Github PK
View Code? Open in Web Editor NEWAsynchronous allocation of TUN/TAP devices in Rust using async-std
Home Page: https://crates.io/crates/async-tun
License: Apache License 2.0
Asynchronous allocation of TUN/TAP devices in Rust using async-std
Home Page: https://crates.io/crates/async-tun
License: Apache License 2.0
Hello!
Im having issues with your library and I traced it down to flushing buffers and was wondering if you had advice.
I set up a virtual machine and have tunnels created between my machine and the VM. I can ping through the interface with varying levels of success. Tracking down the issue it seems flushing the buffer can sometimes take 10-60 seconds, followed by a few flushes taking milliseconds, then another taking a long time. I don't think bandwidth is a problem since I'm sending a small amount of data (100's of bytes) once a second.
I did an strace
and sometimes see errors but nothing seems consistent with the long delay. Here are two examples where the flush had a long wait (not all have errors).
futex(0x55cd2389a2d8, FUTEX_WAIT_PRIVATE, 0, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
futex(0x55cd2389a2d8, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x55cd23899ec0, FUTEX_WAKE_PRIVATE, 1) = 0
lseek(11, -48, SEEK_CUR) = -1 ESPIPE (Illegal seek)
futex(0x7f6364000ce8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f6364003600, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f6364000ce8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f6364003600, FUTEX_WAKE_PRIVATE, 1) = 1
...
futex(0x55cd2389a2d8, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x55cd23899ec0, FUTEX_WAKE_PRIVATE, 1) = 0
lseek(11, -48, SEEK_CUR) = -1 ESPIPE (Illegal seek)
futex(0x7f6364000ce8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f6364003600, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f6364000ce8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f6364003600, FUTEX_WAKE_PRIVATE, 1) = 1
I have also seen this behavior between two physical machines.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.