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

vsock: set listener fd to blocking mode #23

Closed jinankjain closed 5 years ago

jinankjain commented 5 years ago

Currently vscp application does not work since listener fd is set nonblocking mode. Thus l.Accept() returns as soon as it does not find a client. But in reality running a client might take some time and it should wait for client to come up and send a connect request.

mdlayher commented 5 years ago

Sorry, I'm not going to pursue this. Go 1.12 should give us the runtime poller functionality that makes this all work, and #22 would be a more appropriate solution I believe.

jinankjain commented 5 years ago

Sounds good thanks for the quick response. :)

On Sun, Feb 10, 2019, 15:43 Matt Layher <notifications@github.com wrote:

Closed #23 https://github.com/mdlayher/vsock/pull/23.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mdlayher/vsock/pull/23#event-2129241859, or mute the thread https://github.com/notifications/unsubscribe-auth/ADrSOCihrrEcAgjrGFN0V28mQGEU-w6gks5vMDAmgaJpZM4azDMr .