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) {
|
||||
goto cleanup;
|
||||
} else if (!ret) {
|
||||
if (++timeout < 5) {
|
||||
if (++timeout < 5 || (!block && timeout < 10)) {
|
||||
continue;
|
||||
} else if (block) {
|
||||
fprintf(stderr, "Timeout while waiting for ACK(%d).\n", block);
|
||||
|
|
Loading…
Add table
Reference in a new issue