9pudc: add `defer conn.Close()` for the connection to docker
9pudc: add `defer conn.Close()` for the connection to docker

Before this patch we were using `conn.CloseRead()` and `conn.CloseWrite()`
to flush and signal EOF properly in the proxy, but we forgot to actually
close the file descriptor. As a result we leaked one fd per request,
until the GC came along and closed them for us. This could explain why
the process appeared to block: new connections could not be accepted
because we were out of fds, but once the GC had happened (or we closed
some 9P fds as a result of the client on the host closing its connection)
then the process would unwedge.

This doesn't explain why the 9P filesystem itself would occasionally become
unresponsive in Linux, although apparently still processing requests normally
if you connect to it directly over the host-side socket.

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@docker.com>

konstruktoid/linuxkit,rn/linuxkit,konstruktoid/linuxkit,zx2c4/linuxkit,thebsdbox/linuxkit,JohnnyLeone/linuxkit,davefreitag/linuxkit,deitch/linuxkit,thebsdbox/linuxkit,eyz/linuxkit,yankcrime/linuxkit,ndauten/linuxkit,linuxkit/linuxkit,rn/linuxkit,samoht/linuxkit,zx2c4/linuxkit,djs55/linuxkit,yankcrime/linuxkit,justincormack/linuxkit,linuxkit/linuxkit,kencochrane/linuxkit,deitch/linuxkit,djs55/linuxkit,mor1/linuxkit,eyz/linuxkit,kencochrane/linuxkit,t-koulouris/linuxkit,samoht/linuxkit,yankcrime/linuxkit,djs55/linuxkit,furious-luke/linuxkit,mor1/linuxkit,zx2c4/linuxkit,eyz/linuxkit,thebsdbox/linuxkit,yankcrime/linuxkit,thebsdbox/linuxkit,rn/linuxkit,davefreitag/linuxkit,konstruktoid/linuxkit,rn/linuxkit,linuxkit/linuxkit,t-koulouris/linuxkit,ndauten/linuxkit,deitch/linuxkit,ndauten/linuxkit,mor1/linuxkit,kencochrane/linuxkit,justincormack/linuxkit,linuxkit/linuxkit,justincormack/linuxkit,t-koulouris/linuxkit,ndauten/linuxkit,radu-matei/linuxkit,radu-matei/linuxkit,davefreitag/linuxkit,djs55/linuxkit,JohnnyLeone/linuxkit,kencochrane/linuxkit,justincormack/linuxkit,YuPengZTE/linuxkit,t-koulouris/linuxkit,t-koulouris/linuxkit,konstruktoid/linuxkit,mor1/linuxkit,ndauten/linuxkit,JohnnyLeone/linuxkit,eyz/linuxkit,kencochrane/linuxkit,radu-matei/linuxkit,thebsdbox/linuxkit,ndauten/linuxkit,eyz/linuxkit,furious-luke/linuxkit,zx2c4/linuxkit,yankcrime/linuxkit,eyz/linuxkit,YuPengZTE/linuxkit,deitch/linuxkit,samoht/linuxkit,justincormack/linuxkit,furious-luke/linuxkit,rn/linuxkit,radu-matei/linuxkit,davefreitag/linuxkit,djs55/linuxkit,kencochrane/linuxkit,radu-matei/linuxkit,yankcrime/linuxkit,linuxkit/linuxkit,furious-luke/linuxkit,YuPengZTE/linuxkit,davefreitag/linuxkit,samoht/linuxkit,konstruktoid/linuxkit,samoht/linuxkit,deitch/linuxkit,thebsdbox/linuxkit,YuPengZTE/linuxkit,zx2c4/linuxkit,JohnnyLeone/linuxkit,YuPengZTE/linuxkit,mor1/linuxkit,YuPengZTE/linuxkit,justincormack/linuxkit,JohnnyLeone/linuxkit,konstruktoid/linuxkit,furious-luke/linuxkit