Fix #2 : File dl of over 2GB failing over SSL

Not sure if this breaks the "STATE_WRITE_RANGES" case.
pull/3/head
Stephen Seo 6 years ago
parent b3eb9beb5e
commit b8013bc11a

@ -69,12 +69,6 @@ int ssl_blk_write(struct REQUEST *req, int offset, int len)
int rc;
char buf[4096];
if (lseek(req->bfd, offset, SEEK_SET) == -1) {
if (debug)
perror("lseek");
return -1;
}
if (len > sizeof(buf))
len = sizeof(buf);
rc = read(req->bfd, buf, len);

Loading…
Cancel
Save