Small fix for dynamic hydra buffer

This commit is contained in:
Michiel Broek 2003-11-03 21:04:10 +00:00
parent 9ece329bdc
commit 865ba8efee

View File

@ -1073,6 +1073,7 @@ int hydra_batch(int role, file_list *to_send)
goodbytes += txlen; goodbytes += txlen;
txlen += 4; txlen += 4;
hytxpkt(HPKT_DATA, txbuf, txlen); hytxpkt(HPKT_DATA, txbuf, txlen);
cmpblksize = H_UNCBLKLEN;
} }
} else { } else {
/* /*
@ -1084,6 +1085,7 @@ int hydra_batch(int role, file_list *to_send)
goodbytes += txlen; goodbytes += txlen;
txlen += 4; txlen += 4;
hytxpkt(HPKT_DATA, txbuf, txlen); hytxpkt(HPKT_DATA, txbuf, txlen);
cmpblksize = H_UNCBLKLEN;
} }
} else { } else {
/* /*
@ -1094,6 +1096,7 @@ int hydra_batch(int role, file_list *to_send)
goodbytes += txlen; goodbytes += txlen;
txlen += 4; txlen += 4;
hytxpkt(HPKT_DATA, txbuf, txlen); hytxpkt(HPKT_DATA, txbuf, txlen);
cmpblksize = H_UNCBLKLEN;
} }
if (goodbytes > goodneeded) { if (goodbytes > goodneeded) {
blksize *= 2; blksize *= 2;