…nnection (through CURLOPT_TIMEOUT). Also, always try to set SO_KEEPALIVE on curl sockets, but don't worry if it fails.
…ked system zlib. Also rename md4/sha1 symbols for good measure, even though they don't seem to conflict with anything.
Bump version to 0.6.1_7
… -C option. But, if -C is provided, ignore the environment variable.
http.c: * instead of using get_range_block and get_more_data to pull data from the server, callbacks range_fetch_read_http_headers and range_fetch_read_http_content will process data pushed from libcurl. * no longer buffers anything except lines in MIME multipart delimiters (those are buffered because curl might split a line when pushing data to us, and it's easier to parse line by line) * removed proxy code; libcurl handles it. * issues: - pipelining no longer works - http authentication no longer works; not sure how to deal with the fact that zsync lets you set a different user/pass for each hostname but libcurl does not (probably either drop that feature, or turn off CURLOPT_FOLLOWLOCATION and instead loop around watching CURLINFO_REDIRECT_URL) - also see XXX comments above http_get for behavior changes. url.c: * get_http_host_port no longer needed client.c: * replace call to http.c:get_range_block + http.c:zsync_receive_data with http.c:range_fetch_perform * add -v (verbose) option to put libcurl in verbose mode * add -K (insecure) and -C (ca cert) options to help control HTTPS fetches * exit(1) if -A is provided, since HTTP auth doesn't work right now TODO: * use same curl handle for control file + actual download (for reuse of the connection and SSL session) * ignore MIME multipart preamble and epilogue, if present * restore fine-grained progress meter * restore support for HTTP pipelining * restore support for HTTP authentication * restore old behavior noted in XXX comments above http_get
…beyond the end of the file (clip to zs->filelen instead)
…it to -1
…uninitialized memory use. the extra z->seq_matches blockhashes will be referenced but not initialized. this may or may not be masking the true problem.
…ch_remaining_blocks_http hits eof
…him and included the remarks alongside my custom zlib, for my own future reference and for others.