#
306428 |
|
28-Sep-2016 |
emaste |
MFC (part of) r298089 by pfg: Cleanup unnecessary semicolons
|
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
190679 |
|
03-Apr-2009 |
cperciva |
Set SO_NOSIGPIPE on sockets used by phttpget. Without this, if (1) phttpget is attempting to download enough files that it can't send all the requests at once, and (2) the remote server forcibly closes the connection, resulting in RST packets being sent, phttpget will receive a SIGPIPE and terminate without downloading all of the files.
This is probably responsible for a number of hard-to-reproduce errors with portsnap and freebsd-update.
MFC after: 3 days
|
#
176250 |
|
13-Feb-2008 |
cperciva |
Improve conformance to the HTTP specification by using case-insensitive comparisons for header keywords. Apparently some proxies use creative capitalization.
Weird proxy found by: brooks MFC after: 3 days
|
#
171120 |
|
30-Jun-2007 |
cperciva |
Add support for HTTP/1.0 Persistent Connections to phttpget. Requests are be marked as HTTP/1.1 but "Connection: Keep-Alive" is added; this convinces HTTP/1.0 servers and proxies to hold the TCP connection open despite not being able to use HTTP pipelining.
This dramatically cuts down on the number of TCP connections (and thus port numbers) used by portsnap when talking to an HTTP/1.0 proxy (e.g., squid), and has the side benefit of improving performance in those cases.
Tested by: simon Approved by: re (kensmith) MFC After: 1 week
|
#
164057 |
|
07-Nov-2006 |
cperciva |
Add support for the HTTP_TIMEOUT environment variable (integer number of seconds, just like in fetch(1)).
Submitted by: rdivacky
|
#
158301 |
|
05-May-2006 |
cperciva |
Allow the HTTP_PROXY environment variable to be (mis)spelled as "http_proxy", since some people apparently do this and fetch(3) allows it.
|
#
156405 |
|
07-Mar-2006 |
ume |
Correct handling of HTTP_PROXY_AUTH. A password may have `:'.
Approved by: cperciva MFC after: 2 days
|
#
154909 |
|
27-Jan-2006 |
cperciva |
Merge from accidental commit to RELENG_5: Correctly identify the host and port values on a failed getaddrinfo lookup.
|
#
152546 |
|
17-Nov-2005 |
cperciva |
Correctly handle a TCP connection being shutdown by the server while we're reading response headers. (Handle it as a connection-killing error, rather than entering an infinite loop reading zero bytes.)
Reported by: simon Discovered thanks to: A not-very-transparent transparent HTTP proxy. MFC after: 3 days
|
#
150461 |
|
22-Sep-2005 |
cperciva |
Add HTTP proxy authentication, via the HTTP_PROXY_AUTH environment variable.
Tested by: Emil Mikulic X-MFC-After: 6.0-RELEASE
|
#
150427 |
|
21-Sep-2005 |
cperciva |
Style fix: "if (pointer)" -> "if (pointer != NULL)"
|
#
148925 |
|
10-Aug-2005 |
cperciva |
Remove unused variable.
Reported by: stefanf
|
#
148881 |
|
09-Aug-2005 |
cperciva |
Replace INT_MAX with OFF_MAX. I used INT_MAX originally (in ports) because OFF_MAX wasn't defined on FreeBSD 4.x.
|
#
148880 |
|
09-Aug-2005 |
cperciva |
When parsing the HTTP_PROXY environment variable, strip a trailing / from the port number (if any exists). This unbreaks env HTTP_PROXY="http://localhost:3128/" portsnap fetch
While I'm here, list both the host and the port in the error message output if getaddrinfo() fails, since either of them could be responsible for the failure.
|
#
148871 |
|
08-Aug-2005 |
cperciva |
Add portsnap to the base system. This is a secure, easy to use, fast, lightweight, and generally good way for users to keep their ports trees up to date.
This is version 0.9.4 from the ports tree (sysutils/portsnap) with the following changes: 1. The experimental pipelined http code is enabled. No seatbelts in -CURRENT. (^_^) 2. The working directory has moved from /usr/local/portsnap to /var/db/portsnap (as discussed on -arch two days ago). 3. Portsnap now fetches a list of mirrors (distributed as DNS SRV records) and selects one randomly. This should help to avoid the uneven loading which plagues the cvsup mirror network. 4. The license is now 2-clause BSD instead of 3-clause BSD. 5. Various incidental changes to make portsnap fit into the base system's build mechanics.
X-MFC-After: 6.0-RELEASE X-MFC-Before: 5.5-RELEASE X-MFC-To: RELENG_6, RELENG_5, ports discussed on: -arch and several other places "yes please" from: simon, remko, flz, Diane Bruce thinks this is a great idea: bsdimp Hopes he didn't forget any files: cperciva
|