Skip to content
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

/dev/net/tun not pollable #1229

Open
crioto opened this issue Mar 5, 2020 · 2 comments
Open

/dev/net/tun not pollable #1229

crioto opened this issue Mar 5, 2020 · 2 comments
Assignees
Labels

Comments

@crioto
Copy link
Member

crioto commented Mar 5, 2020

In version 1.12 of Go a Sysconn was introduced to os.File for ioctl calls, that is used for setting up device. Currently p2p doesn't support polling and during the process of instance creation we're getting error:
/dev/net/tun: not pollable
which happens during first attempt to read data from TAP interface. Afterwards, instance destroys itself, but start command exits with exit code 0, because interface creation went without any problems.
We need to modify current code of tap interfaces on Linux to support latest versions of Go.

@crioto crioto added the bug label Mar 5, 2020
@crioto crioto self-assigned this Mar 5, 2020
@akarasulu
Copy link
Contributor

The logic is confusing me can you clarify?

Currently p2p doesn't support polling and during the process of instance creation we're getting error: /dev/net/tun: not pollable

My confusion: Why would we get the error if p2p is not attempting a poll operation on the device?

@crioto
Copy link
Member Author

crioto commented Mar 5, 2020

We create interface (file descriptor) and epoll initializes it with poll flags and then read operation fails, because tun interface is not pollable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants