Fix NFS socket read hangs

pull/32/head
Vitaliy Filippov 2022-05-11 21:01:39 +03:00
parent 2697aae909
commit 93a9f1ef89
1 changed files with 3 additions and 2 deletions

View File

@ -606,7 +606,7 @@ void nfs_client_t::handle_read(int result)
{
// Read the tail and come back
submit_read(wanted-left);
break;
return;
}
else
{
@ -635,9 +635,10 @@ void nfs_client_t::handle_read(int result)
cur_buffer.parsed_pos = 0;
// Restart from the beginning
submit_read(wanted-left);
break;
return;
}
}
submit_read(0);
}
}