p2p icon indicating copy to clipboard operation
p2p copied to clipboard

/dev/net/tun not pollable

Open crioto opened this issue 4 years ago • 2 comments

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 avatar Mar 05 '20 11:03 crioto

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?

akarasulu avatar Mar 05 '20 11:03 akarasulu

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

crioto avatar Mar 05 '20 17:03 crioto