Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jan 18, 2012
  1. @gianm

    Fix off-by-one

    gianm authored
  2. @gianm
  3. @gianm
Commits on Jan 17, 2012
  1. @gianm

    Merge branch 'master' into zsync_y

    gianm authored
    Conflicts:
    	c/http.c
    	c/libzsync/zsync.c
  2. @gianm

    Add -R (ssl client certificate) and -S (private key) command line opt…

    merlino authored gianm committed
    …ions.
  3. @gianm

    add -I (interface) command line option

    merlino authored gianm committed
  4. @gianm

    Add -T command line option that tells curl to set a timeout on the co…

    merlino authored gianm committed
    …nnection (through CURLOPT_TIMEOUT). Also, always try to set SO_KEEPALIVE on curl sockets, but don't worry if it fails.
  5. @gianm

    http.c: Fix comments that refer to long options. (We don't use them)

    merlino authored gianm committed
  6. @gianm

    Rename symbols in bundled zlib so it can coexist with dynamically lin…

    merlino authored gianm committed
    …ked system zlib. Also rename md4/sha1 symbols for good measure, even though they don't seem to conflict with anything.
  7. @gianm

    Update zsync man page with -v, -C, -K, and ZSYNC_CA_BUNDLE.

    merlino authored gianm committed
    Bump version to 0.6.1_7
  8. @gianm

    Respect ZSYNC_CA_BUNDLE environment variable as an alternative to the…

    merlino authored gianm committed
    … -C option. But, if -C is provided, ignore the environment variable.
  9. @gianm

    Replace zsync's http client with libcurl.

    merlino authored gianm committed
    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
  10. @gianm

    zsync.c: in zsync_needed_byte_ranges, don't return a range that goes …

    merlino authored gianm committed
    …beyond the end of the file (clip to zs->filelen instead)
  11. @gianm

    zsync.h: add include guards

    merlino authored gianm committed
  12. @gianm

    zsync.h: add zsync_filelen, since it's used by client.c

    merlino authored gianm committed
  13. @gianm

    zsync.c: in parse_822, strptime will not initialize tm_isdst, so set …

    merlino authored gianm committed
    …it to -1
  14. @gianm

    state.c: in rcksum_init, use calloc instead of malloc to avoid later …

    merlino authored gianm committed
    …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.
  15. @gianm

    Check return value of last zsync_receive_data call after client.c:fet…

    merlino authored gianm committed
    …ch_remaining_blocks_http hits eof
  16. @gianm

    add valid_length to fix handling of !zs->filelen on 0 byte files

    eam authored gianm committed
  17. @gianm

    ifdef inittypes/stdint

    eam authored gianm committed
  18. @gianm

    %llu is incorrectly treated as (long int) on bsd4, switch everyone to…

    eam authored gianm committed
    … %qu
  19. @gianm

    relocate declaration to block start -- no c99

    eam authored gianm committed
Commits on Sep 23, 2010
  1. Include the README.zlib in the release.

    Colin Phipps authored
    Oops; thanks Marcin.
Commits on Sep 20, 2010
  1. Release 0.6.2; add images to repo.

    Colin Phipps authored
  2. Fix check-zsyncmake.

    Colin Phipps authored
    It needed updating for the new verson.
    Make the script version-independent now.
    And it needed fixing for mtimes too.
  3. Switch to autoreconf for making autotools files.

    Colin Phipps authored
    Idea from Loïc Minier.
Commits on Sep 19, 2010
  1. Cope with filesystems not supporting link().

    Colin Phipps authored
  2. Seed file reading optimisations.

    Colin Phipps authored
    Stop reading seed files if target is complete.
    Also deduplicate seed files.
    Optimisations suggested by Jan Varho.
  3. Fix redirect handling.

    Colin Phipps authored
    Also report redirects, and report non-HTTP responses.
  4. Fix some signedness warnings.

    Colin Phipps authored
  5. Fix --disable-profile.

    Colin Phipps authored
Commits on Jun 13, 2010
  1. Exit with error if given a truncated .gz file.

    Colin Phipps authored
    (Previously zsyncmake would infinite loop.)
Commits on Mar 22, 2010
  1. Unit test for MD4 implementation.

    Colin Phipps authored
Commits on Dec 13, 2009
  1. After discussion with Mark Adler, I've reformatted my explanation to …

    Colin Phipps authored
    …him and included the remarks alongside my custom zlib, for my own future reference and for others.
Commits on Dec 12, 2009
Something went wrong with that request. Please try again.