Fixed tcp_read_error test case on Windows