vpnkit icon indicating copy to clipboard operation
vpnkit copied to clipboard

switch write failed: unknown: unknown: unknown: attempted to write to a closed flow

Open djs55 opened this issue 8 years ago • 2 comments
trafficstars

I connected another ethernet client and then disconnect it. When I run dhcpd in another VM I now see these in the logs:

com.docker.vpnkit: [ERROR] Socket.Pipe.writev unix:/Users/djs/Library/Containers/com.docker.docker/Data/s50: caught Broken pipe returning Eof
com.docker.vpnkit: [ERROR] switch write failed: unknown: unknown: unknown: attempted to write to a closed flow

It seems like it's trying to send the broadcast packets along closed connections.

djs55 avatar Sep 18 '17 12:09 djs55

/cc @MagnusS

djs55 avatar Sep 18 '17 12:09 djs55

Hm, looking at the current code it looks like the bridge listener function is never cleared properly after an error/disconnect: https://github.com/moby/vpnkit/blob/master/src/hostnet/slirp.ml#L986. I thought this would automatically recover though, I'll take a closer look tomorrow

MagnusS avatar Sep 18 '17 14:09 MagnusS