New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOBUFS error while writing to the TUN #724

Closed
ameshkov opened this Issue Jul 28, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@ameshkov
Member

ameshkov commented Jul 28, 2016

Discussion:
https://forum.adguard.com/index.php?threads/android-2-7-153-connection-issues-thanks-to-adguard.12197/

18:55:32.642 [Thread-33033] ERROR com.adguard.android.filtering.vpn.e - TUN: Error while writing to the tun device
java.io.IOException: write failed: ENOBUFS (No buffer space available)
    at libcore.io.IoBridge.write(IoBridge.java:498) ~[na:0.0]
    at java.io.FileOutputStream.write(FileOutputStream.java:186) ~[na:0.0]
    at com.adguard.commons.b.d.a(Unknown Source) ~[na:0.0]
    at com.adguard.android.filtering.packet.b.a(Unknown Source) ~[na:0.0]
    at com.adguard.android.filtering.vpn.e.a(Unknown Source) ~[na:0.0]
    at com.adguard.android.filtering.vpn.a.b(Unknown Source) ~[na:0.0]
    at com.adguard.android.filtering.vpn.m$1.a(Unknown Source) ~[na:0.0]
    at com.adguard.android.filtering.lwip.c.f(Unknown Source) ~[na:0.0]
    at com.adguard.android.filtering.lwip.c.a(Unknown Source) ~[na:0.0]
    at com.adguard.android.filtering.vpn.n.write(Unknown Source) ~[na:0.0]
    at com.adguard.commons.b.d.a(Unknown Source) ~[na:0.0]
    at com.adguard.android.filtering.vpn.b.a(Unknown Source) ~[na:0.0]
    at com.adguard.commons.b.s.a(Unknown Source) ~[na:0.0]
    at com.adguard.commons.b.s$1.run(Unknown Source) ~[na:0.0]
    at java.lang.Thread.run(Thread.java:818) ~[na:0.0]
Caused by: android.system.ErrnoException: write failed: ENOBUFS (No buffer space available)
    at libcore.io.Posix.writeBytes(Native Method) ~[na:0.0]
    at libcore.io.Posix.write(Posix.java:271) ~[na:0.0]
    at libcore.io.BlockGuardOs.write(BlockGuardOs.java:313) ~[na:0.0]
    at libcore.io.IoBridge.write(IoBridge.java:493) ~[na:0.0]
    ... 14 common frames omitted

@ameshkov ameshkov added Bug VPN labels Jul 28, 2016

@ameshkov ameshkov added this to the 2.8 milestone Jul 28, 2016

@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

ameshkov Nov 2, 2016

Member

AG now handles ENOBUFS error properly

Member

ameshkov commented Nov 2, 2016

AG now handles ENOBUFS error properly

@ameshkov ameshkov closed this Nov 2, 2016

@739988940

This comment has been minimized.

Show comment
Hide comment
@739988940

739988940 Aug 31, 2018

have you solve this problem?

739988940 commented Aug 31, 2018

have you solve this problem?

@sfionov

This comment has been minimized.

Show comment
Hide comment
@sfionov

sfionov Aug 31, 2018

Member

This issue is about old TCP/IP stack implementation which was replaced in AdGuard 2.10.
New one uses asynchronous I/O where buffers exhaustion is already handled.

Member

sfionov commented Aug 31, 2018

This issue is about old TCP/IP stack implementation which was replaced in AdGuard 2.10.
New one uses asynchronous I/O where buffers exhaustion is already handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment