Ignore additional upload requests
This commit is contained in:
parent
0023151158
commit
61980e136e
1 changed files with 5 additions and 4 deletions
9
nmrp.c
9
nmrp.c
|
@ -518,10 +518,11 @@ int nmrp_do(struct nmrpd_args *args)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case NMRP_C_TFTP_UL_REQ:
|
case NMRP_C_TFTP_UL_REQ:
|
||||||
if (++ulreqs > 5) {
|
if (++ulreqs > 1) {
|
||||||
fprintf(stderr, "Device re-requested file upload %d "
|
if (verbosity) {
|
||||||
"times; aborting.\n", ulreqs);
|
printf("Ignoring upload request %d.\n", ulreqs);
|
||||||
tx.msg.code = NMRP_C_CLOSE_REQ;
|
}
|
||||||
|
ethsock_set_timeout(sock, args->ul_timeout);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue