-
Notifications
You must be signed in to change notification settings - Fork 206
Speed is slow #5
Comments
When this project is available to use? |
Hi @devstar1988, Right now the project uses TunBuilder for creating tunnel and on the last step it requires file descriptor (FD) of the TUN. iOS doesn't allow getting this descriptor so as workaround I use paired sockets. I send FD of one of them to the OpenVPN library and use another one for reading/writing data. This could very well be a bottleneck, sometimes buffer overflows and that's why you could see this message: Few commits ago OpenVPN devs added possibility to create custom factory for tunnel creation and reading/writing. I'm going to implement it to get rid of sockets but alas I don't have ETA yet. Later today I'll try to increase buffer size for sockets and slightly modify reading/writing process but I cant't guarantee the result. |
Ok, thanks Just saw your latest commit. |
Great works. It worked. Now, speed were increased. Thanks a lot |
Glad to hear it! Thanks for letting me know about this issue. |
I will check this bit more. if any issue, i will let you know. Thanks |
Hello
I tried to use this adapter for my personal purpose.
Btw, this adapter has limitation in network speed.
When i use openvpn client app, speed was up to 30mbps.
but, if i use this adapter, speed was up to 1mbps.
I think that there is some limitation in buffer size.
I tried to add following settings into vpn profile.
sndbuf 65536
rcvbuff 65536
but, when i connect to vpn, if i debug, sometimes i get this error.
Tun write error: write_some: No buffer space available
The text was updated successfully, but these errors were encountered: