When running the sock_stress tests with the server on the host (sock_stress -v 1 -s hvsock) and the client in the Linux VM sock_stress -v 1 -c hvsock://parent the client frequently gets errors on receive, like this
2018/02/07 13:30:41 [00086] Failed to receive: EOF
2018/02/07 13:30:41 [00086] Failed to receive: EOF
2018/02/07 13:30:41 [00086] TX/RX: 49349 bytes in 36.6093 ms
2018/02/07 13:30:41 [00086] Checksums don't match
2018/02/07 13:30:41 [00087] Failed to receive: EOF
2018/02/07 13:30:41 [00087] Failed to receive: EOF
The server does not report any errors and the test works fine in the other direction.
It seems timing sensitive as some connections work fine, even with a similar amount of data transmitted.
The server (on the host) is basically performing:
con := Accept()
io.Copy(con, con)
con.Close()
The client in one go-routine is sending random data and when all data is sent calls (CloseWrite()). In another go routine is it repeatably calling io.ReadAll() of fixed sized chunks (min of buffer or data left to read). It's the io.ReadAll() which sees the EOF before all data is read.
When running the
sock_stresstests with the server on the host (sock_stress -v 1 -s hvsock) and the client in the Linux VMsock_stress -v 1 -c hvsock://parentthe client frequently gets errors on receive, like thisThe server does not report any errors and the test works fine in the other direction.
It seems timing sensitive as some connections work fine, even with a similar amount of data transmitted.
The server (on the host) is basically performing:
The client in one go-routine is sending random data and when all data is sent calls (
CloseWrite()). In another go routine is it repeatably callingio.ReadAll()of fixed sized chunks (min of buffer or data left to read). It's theio.ReadAll()which sees the EOF before all data is read.