Longer timeout for initial WRQ
This commit is contained in:
parent
61980e136e
commit
dc961b598a
1 changed files with 1 additions and 1 deletions
2
tftp.c
2
tftp.c
|
@ -322,7 +322,7 @@ int tftp_put(struct nmrpd_args *args)
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else if (!ret) {
|
} else if (!ret) {
|
||||||
if (++timeout < 5) {
|
if (++timeout < 5 || (!block && timeout < 10)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (block) {
|
} else if (block) {
|
||||||
fprintf(stderr, "Timeout while waiting for ACK(%d).\n", block);
|
fprintf(stderr, "Timeout while waiting for ACK(%d).\n", block);
|
||||||
|
|
Loading…
Add table
Reference in a new issue