summaryrefslogtreecommitdiff
path: root/net/libfetch/files
AgeCommit message (Collapse)AuthorFilesLines
2022-08-23libfetch: remove unused variablewiz1-6/+3
Also removed in upstream FreeBSD sources. Fixes a clang warning/error reported by Edgar Fuß.
2019-08-27libfetch-2.39: Improve date parsingjoerg1-3/+12
2019-02-11libfetch: add FALLTHROUGH comment for gcc 7wiz1-1/+2
To fix pkg_install build.
2016-10-27Add the necessary dependencies for safe concurrent build.joerg1-1/+4
2016-10-21libfetch-2.38: Support proxies for https URLs. From FreeBSD.jperkin1-12/+39
2016-10-20libfetch-2.37: Always run SSL_read first for SSL connections. It willjoerg2-6/+26
signal whether more input (or output) is needed, update the poll mask accordingly.
2016-10-20Convert fetch_read from select(2) to poll(2) based sleep.joerg1-29/+40
2016-10-20Only set the cached flag when the connection is actually cached. Newjoerg1-2/+2
connections should not have it set. This changes the behavior of timeouts on the first read.
2016-05-31Add the missing parameter "const char *pattern" to the fetchList* functions.abhinav1-8/+8
From Julian Fagir in PR lib/45579
2016-02-08Do not use TCP_NOPUSH on Darwin, it adds a 5 second delay after the initialjperkin1-5/+5
handshake. Bump PKGREVISION.
2014-06-11Revert bad _GNU_SOURCE change.joerg2-6/+2
2014-06-07Define _GNU_SOURCE by default for glibc-based systems (vasprintf(3)).cheusov2-2/+6
This fixes bootstrap failure on AltLinux.
2014-01-08Pass URL to fetch_ssl to fix build and add a cast for some OpenSSLjoerg3-7/+7
constloss.
2014-01-07libfetch-2.36: Support Server Name Identication.joerg1-1/+9
From Michael Gmelin via FreeBSD.
2014-01-07Apply some explicit int casts for size_t format string arguments.joerg3-7/+9
2013-10-03Add explicit sh invocation in case the checkout is missing thejoerg1-3/+3
executable bit on errlist.sh.
2013-07-26Fix build under GNU/kFreeBSD.ryoon1-2/+6
2013-07-22Add -D_FILE_OFFSET_BITS=64 to the largefile flags.jperkin1-2/+2
Bump PKGREVISION.
2013-07-20Use Mt for email addresses.wiz1-7/+7
2013-02-10Cygwin also missing sin_len in sockaddr_in.obache1-2/+2
2012-10-15Use s6_addr32 if present as macro and fallback to memcpy otherwise.joerg1-2/+6
2012-04-26Define LIBFETCH_PRINTFLIKE for !gccjoerg1-1/+3
2012-04-07Fix the last commit to not break bootstrap.joerg3-6/+11
2012-04-07Fix build with clang.wiz3-5/+7
2011-11-08More help for stupid glibc headers.joerg1-2/+3
2011-11-06Do not define HAVE_SA_LEN when __minix is defined per pkg/45039tcort1-2/+2
2011-10-02PR#45210: Fix pkgsrc bootstrap with gcc 4.6marino1-5/+4
Libfetch build failure with gcc 4.6 is due to the a couple of assigned variables not getting used. This patch allows systems like Debian and OpenIndiana to bootstrap pkgsrc.
2011-08-21Be a bit nicer to broken GCC array boundary checks.joerg1-12/+14
2011-01-23Handle the case where tm_year is a long variable, from Benny Siegertagc2-7/+7
and Thorsten Glaser. Part of the MirBSD support changes.
2010-08-20libfetch-2.33:joerg1-1/+6
Don't leak FTP connections on errors in fetch or if only stat is requested. Reported via Xavier Chantry.
2010-06-13libfetch-2.32:joerg1-1/+2
Fix NULL dereference after failed calloc call. From Tavian Barnes.
2010-04-22Regen.joerg1-3/+17
2010-03-21libfetch-2.31:joerg3-25/+75
PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs if the home directory is not the root directory. Remember the current directory the first time a CWD / CDUP has to be issued. Use the document as full URL if the URL started with two / (quoted or not), otherwise append it to the initial directory.
2010-02-24Fix RCS ID.joerg1-1/+1
2010-01-24Fix a variable reference in TCP_NOPUSH case.joerg1-2/+2
2010-01-24Use the hard-core approach of killing SIGPIPE explicitly onjoerg1-1/+20
platforms that don't have MSG_NOSIGNAL like Solaris.
2010-01-23libfetch-2.30:joerg1-10/+69
HTTP keep-alive support
2010-01-23libfetch-2.29:joerg4-109/+52
Push \r\n up to the users of fetch_putln and remove it. Use send instead of write(v) to avoid SIGPIPE.
2010-01-23Remove is_active.joerg3-7/+3
2010-01-22Fix typo in function names, bump date.wiz1-4/+4
2010-01-22libfetch-2.28:joerg6-109/+177
Revamp FTP connection cache. Move it to the common layer to be later shared with HTTP (for persistent connection). The application controls how much caching is desired. Drop the reference counting on connections. Add a callback when the cached connection is dropped due to LRU. Over all, this allows more than one session cached per host and sessions cached to different servers.
2010-01-11libfetch-2.27:joerg1-2/+2
The connection sharing didn't handle the case of active transfers correctly and tried to close the connection in that case (PR 42607). Correctly check if there is a transfer going on and just leave the connection alone in that case.
2009-10-15libfetch-2.26:joerg7-28/+167
- Add support to aggressively cache directory listenings, useful for HTTP - Avoid leaking memory in error cases. From Xavier from Arch Linux.
2009-08-16libfetch-2.24:joerg3-9/+24
Fix a bug in the line reading optimisation, which could get confused if the byte following the new line is a NUL. Adresses Arch Linux problem report #15845. Do not reuse a FTP connection if there is currently a transfer active. Some FTP servers hang on the NOOP command. Reported by Manuel Bouyer.
2009-08-11Fix some lint warnings about G/C unused variables and changing ajoerg2-14/+6
variable type to match the return type of fetch_read.
2009-08-06Fix strict aliasing issue which GCC 4.4 complained about.tnn1-41/+40
While we know that "struct sockaddr_storage" has been engineered to alias to all the sockaddr structs, the compiler does not know about this. Thus, code like this may be unsafe to use: struct sockaddr_storage ss; struct sockaddr_in *sin = &ss; sin->sin_port = 0; /* dereferencing here breaks ISO C aliasing rules */ A workaround is to wrap the struct in a union, e.g: union anonymous { struct sockaddr_storage ss; struct sockaddr_in sin; } u; u.sin.sin_port = 0; -- Approved by: joerg
2009-06-22Correctly regen the cat page.joerg1-176/+484
2009-06-22Regen cat page. Helps Solaris.joerg1-484/+176
2009-03-16Improve markup.joerg1-3/+3
2009-03-10libfetch-2.23:joerg1-1/+4
Don't leak file descriptors when iterating local directories or checking local files for if-modified-since.