Fix NFS socket read hangs

This commit is contained in:
Vitaliy Filippov
2022-05-11 21:06:56 +03:00
parent 2697aae909
commit 93a9f1ef89
+3 -2
View File
@@ -606,7 +606,7 @@ void nfs_client_t::handle_read(int result)
{ {
// Read the tail and come back // Read the tail and come back
submit_read(wanted-left); submit_read(wanted-left);
break; return;
} }
else else
{ {
@@ -635,9 +635,10 @@ void nfs_client_t::handle_read(int result)
cur_buffer.parsed_pos = 0; cur_buffer.parsed_pos = 0;
// Restart from the beginning // Restart from the beginning
submit_read(wanted-left); submit_read(wanted-left);
break; return;
} }
} }
submit_read(0);
} }
} }