mdlayher / vsock

Package vsock provides access to Linux VM sockets (AF_VSOCK) for communication between a hypervisor and its virtual machines. MIT Licensed.
MIT License
328 stars 65 forks source link

resource temporarily unavailable? #24

Closed xibz closed 5 years ago

xibz commented 5 years ago

I cannot seem to ever to get past the resource temporarily unavailable error. It seems to retry a bunch, but never succeeds in a connection. This may not even pertain to this library, but any clue to why this is occurring would be great!

mdlayher commented 5 years ago

For the time being, you'll have to handle that error yourself and keep looping. In Go 1.12, we'll have proper runtime network poller support, and this will no longer be necessary.

/cc @mxpv

YvesChan commented 5 years ago

Same here. vscp doesn't work with Go 1.11.5.

Output like this:

2019/03/14 17:18:39 receive: creating file "cpuinfo.txt" for output
2019/03/14 17:18:39 receive: opening listener: 1024
2019/03/14 17:18:39 receive: listening: host(2):1024
2019/03/14 17:18:39 vscp: receive: failed to accept: resource temporarily unavailable

Is it the same reason?

mdlayher commented 5 years ago

Please upgrade to Go 1.12. See #25.

mdlayher commented 5 years ago

Fixed as of https://github.com/mdlayher/vsock/pull/26.