kbyanc
ff2208f538
Set the TCP_NODELAY socket option and clear TCP_NOPUSH in order to flush
...
any pending HTTP request rather than calling shutdown(2) with SHUT_WR.
This makes libfetch (and thus fetch(1)) work again with Squid proxies
configured to not allow half-closed connections.
Reported by: Pawel Worach (pawel.worach AT telia DOT com)
2005-03-02 19:09:28 +00:00
des
09704622eb
Fix a memory leak: when freeing the connection structure, don't forget to
...
free the connection buffer as well.
PR: bin/76153
MFC after: 1 week
2005-02-16 12:46:46 +00:00
kbyanc
5d79b92a85
Set TCP_NOPUSH on HTTP requests, reducing the number of round-trips
...
necessary to establish each connection.
MFC after: 2 weeks
2005-02-16 00:22:20 +00:00
ru
1f12ffeb1d
Expand contractions.
2005-02-13 23:45:54 +00:00
ru
d65df7068b
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
ru
9ab6c40553
NOCRYPT -> NO_CRYPT
2004-12-21 10:16:04 +00:00
des
f1ab8c2ac3
Update copyright years.
2004-09-21 18:35:21 +00:00
des
ed89570fd7
Don't forget to allocate space for the terminating NUL when converting to
...
base 64.
PR: misc/70022
Submitted by: Herve Masson <herve-bsdbt@mindstep.com>
MFC after: 3 days
2004-08-07 20:23:50 +00:00
cperciva
18c5d6e3f5
Join the 21st century: Cryptography is no longer an optional component
...
of releases. The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.
Approved by: re (scottl), markm
Discussed on: freebsd-current, in late April 2004
2004-08-06 07:27:08 +00:00
ru
4a6cd75809
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
des
c407dd7263
Slight tweak to previous commit: don't forget to call _http_seterr() if
...
we get a genuine 416 reply.
2004-02-11 09:35:27 +00:00
des
836fe68f4b
When restarting a transfer that has already completed, the server will
...
reply with a 416 error code (requested range not satisfiable) because
we ask it to start at the end of the file. Handle this gracefully by
considering a 416 reply a success if the requested offset exactly
matches the length of the file and the requested length is zero.
2004-02-11 09:31:39 +00:00
des
d85eae8358
Re-wrap some comments.
2004-02-11 09:23:35 +00:00
des
c14c32c409
I don't normally use my middle name, so remove it from attributions in
...
man pages (though not from copyright notices). While I'm here, add email
addresses where appropriate.
2004-01-25 11:39:42 +00:00
ume
c72f236eb7
preparation for RFC3493. EAI_NODATA was deprecated.
2003-10-23 13:50:01 +00:00
ru
b8e742a388
mdoc(7): Use the new feature of the .In macro.
2003-09-08 19:57:22 +00:00
des
2dd4214e98
Don't close a FILE * which we know is bogus.
2003-08-29 15:54:12 +00:00
des
2658595cab
Some servers respond to RETR in active mode with 125 (connection already
...
open) rather than 150 (opening connection). There's no reason why we
shouldn't accept that.
PR: misc/42172
MFC in: 3 days
2003-08-19 11:43:11 +00:00
ru
5048add97a
Make sure the crypto versions of libfetch and fetch(1) appear in
...
the "crypto" distribution.
Approved by: des
2003-07-22 13:54:31 +00:00
trhodes
c53d0f3872
Add an EXAMPLES section.
...
PR: 43899
Reviewed by: des, ru
2003-06-10 20:41:18 +00:00
ru
182d112c40
Assorted mdoc(7) fixes.
...
Approved by: re (blanket)
2003-05-22 13:02:28 +00:00
des
f57ad275c4
Retire the useless NOSECURE knob.
...
Approved by: re (scottl)
2003-05-19 15:52:01 +00:00
des
e2224ddd5e
Mark libfetch as c99-clean. Always build at WARNS level 2 rather than
...
juggling with levels 2 and 3, as this has lead to world breakage for
NOCRYPT users in the past.
2003-05-01 14:39:43 +00:00
des
4586cf9c9f
Don't dereference flags if NULL (see http.c rev 1.87)
2003-03-29 15:15:38 +00:00
mtm
1e23ef6959
The flags passed in to _ftp_get_proxy may be null
...
Approved by: des, markm (mentor)(implicit)
2003-03-19 21:39:00 +00:00
des
c11bcb5417
Don't parse the proxy URL unless we're actually going to use it. No real
...
functional difference, but debugging output will be less confusing.
2003-03-11 08:20:58 +00:00
des
6725b2e4b7
Add and document support for a FETCH_BIND_ADDRESS environment variable
...
specifying a local address to bind sockets to. Caveat: lightly tested.
PR: bin/37572
2003-03-03 12:35:03 +00:00
markm
ae91bda061
No need for the OPENSSL_NO_KRB5 switch anymore.
...
Fixed by: nectar
2003-01-31 23:26:55 +00:00
markm
20193a2f81
Adjust for OpenSSL 0.9.7.
2003-01-28 23:03:15 +00:00
des
0f18f206f5
style(9): add parentheses to sizeof even when not strictly required.
...
MFC after: 3 days
2003-01-28 08:04:40 +00:00
jwd
ad6472e9bc
Fix signed/unsigned comparison warning/error from 'make release'
2003-01-28 00:33:53 +00:00
des
0d02f62802
Document .netrc support.
2003-01-22 18:27:25 +00:00
des
0e40af13be
Hook in the .netrc code + don't use pointers as if they were booleans.
2003-01-22 17:54:49 +00:00
des
8d80ddcfca
Experimental support for .netrc.
2003-01-22 17:53:58 +00:00
des
9b94f0294d
Initialization paranoia.
2003-01-22 17:53:15 +00:00
des
4bf8f9ec51
A negative offset means "get it all".
2003-01-22 17:52:27 +00:00
des
0e7c7be707
Set auto-retry mode to avoid some spurious errors.
...
Submitted by: Andre Albsmeier <andre.albsmeier@siemens.com>
MFC after: 7 days
2003-01-03 02:45:10 +00:00
schweikh
2505bee728
english(4) police.
2002-12-27 12:15:40 +00:00
jake
2fabf87f4f
Reduce WARNS level to 3 in the non-crypto case to fix make release on sparc64.
...
This may only be turning up now to changes in the cpp predefines for sparc64,
which may be turning on more strict alignment checking.
Approved by: re
2002-12-04 04:34:59 +00:00
des
9ee793ca7c
Implement and document support for an HTTP_REFERER environment variable.
...
PR: 28171
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Approved by: re (bmah)
MFC after: 1 week
2002-11-28 12:07:15 +00:00
fenner
bcc6bc2a4e
Fix two typos.
2002-11-08 19:10:05 +00:00
des
9af63db167
Use __func__ and break a long line.
2002-10-30 15:01:29 +00:00
des
e2a5c9e6c2
Fix a bug in fenner's _fetch_writev() patch (rev 1.36)
...
Submitted by: fenner
2002-10-30 14:25:00 +00:00
des
b3815a8615
Recognize the (incorrect) error code a MediaHawk server sends in reply to
...
unrecognized commands such as MDTM.
Requested by: Stephen Roome <stephen_roome@pepcross.com>
2002-10-30 06:06:16 +00:00
des
bde988ef15
Clarify my feelings towards fetch / libfetch.
2002-10-30 04:53:58 +00:00
des
9d6e377825
Recommit the non-broken parts of 1.34 and 1.37.
...
Change the type and name of a variable introduced in 1.33.
2002-10-30 04:43:00 +00:00
des
6a7fe6e363
Don't forget to set the error flag when _fetch_read() returns -1.
2002-10-30 04:42:01 +00:00
imp
3fe448f373
Reinstate revs 1.35-36 and 1.38. Revisions 1.34 and 1.37 were specifically
...
the root cause of the bus errors I was experiencing.
Submitted by: fenner
Tested by: obrien
Prompted by: peter
2002-10-30 00:17:16 +00:00
obrien
04ec43bef2
Fix `pkg_add -r' by backing out revs 1.34-1.38.
...
Revs 1.37-8 produce a bus error in some environments.
Revs 1.34-6 do not bus error, but write corrupted files.
2002-10-29 12:17:43 +00:00
des
610f30442d
libfetch is now WARNS5 clean in the non-SSL case.
2002-10-28 10:37:31 +00:00