<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libfetch/common.c, branch releng/5.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F5.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F5.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2002-10-30T14:25:00Z</updated>
<entry>
<title>Fix a bug in fenner's _fetch_writev() patch (rev 1.36)</title>
<updated>2002-10-30T14:25:00Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-10-30T14:25:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7504527ed2c423a26991bd54595ffdbeed1378b5'/>
<id>urn:sha1:7504527ed2c423a26991bd54595ffdbeed1378b5</id>
<content type='text'>
Submitted by:	fenner
</content>
</entry>
<entry>
<title>Recommit the non-broken parts of 1.34 and 1.37.</title>
<updated>2002-10-30T04:43:00Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-10-30T04:43:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bb13d0af67c7a88c199b50cf826a38b9a65d74cb'/>
<id>urn:sha1:bb13d0af67c7a88c199b50cf826a38b9a65d74cb</id>
<content type='text'>
Change the type and name of a variable introduced in 1.33.
</content>
</entry>
<entry>
<title>Reinstate revs 1.35-36 and 1.38.  Revisions 1.34 and 1.37 were specifically</title>
<updated>2002-10-30T00:17:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2002-10-30T00:17:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a4a37038bbf2b4a57351b8848a09d104b68f9d8d'/>
<id>urn:sha1:a4a37038bbf2b4a57351b8848a09d104b68f9d8d</id>
<content type='text'>
the root cause of the bus errors I was experiencing.

Submitted by:	fenner
Tested by:	obrien
Prompted by:	peter
</content>
</entry>
<entry>
<title>Fix `pkg_add -r' by backing out revs 1.34-1.38.</title>
<updated>2002-10-29T12:17:43Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-10-29T12:17:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b68fbebd5a4b5e95b45134756f750cfbfee020ee'/>
<id>urn:sha1:b68fbebd5a4b5e95b45134756f750cfbfee020ee</id>
<content type='text'>
Revs 1.37-8 produce a bus error in some environments.
Revs 1.34-6 do not bus error, but write corrupted files.
</content>
</entry>
<entry>
<title>Fix an off-by-one error (&gt; where &gt;= should have been used) which caused</title>
<updated>2002-10-28T10:19:03Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-10-28T10:19:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=32a4a82829bc6547d33731d4a7c9d8768fc4a1cd'/>
<id>urn:sha1:32a4a82829bc6547d33731d4a7c9d8768fc4a1cd</id>
<content type='text'>
_fetch_writev() to incorrectly report EPIPE in certain cases.

Also fix a number of const warnings by using __DECONST(), plus a signed /
unsigned comparison by casting the rhs to ssize_t.

Submitted by:	fenner, Craig Rodrigues &lt;rodrigc@attbi.com&gt;
</content>
</entry>
<entry>
<title>Slight amendment to rev 1.34: instead of considering any short read an</title>
<updated>2002-10-27T17:20:49Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-10-27T17:20:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1a5424b13755f72a11dd8fd612bdd21ab218b886'/>
<id>urn:sha1:1a5424b13755f72a11dd8fd612bdd21ab218b886</id>
<content type='text'>
error, only report an error if no data was read at all (unless len was
0 to start with).  Otherwise, the final read of practically any transfer
will end in a fatal error.
</content>
</entry>
<entry>
<title>Introduce _fetch_writev(), which is the conn_t version of writev(2).  In</title>
<updated>2002-10-27T16:11:21Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-10-27T16:11:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2761348f78d606c4d5eeda94869de6c9c1973fa6'/>
<id>urn:sha1:2761348f78d606c4d5eeda94869de6c9c1973fa6</id>
<content type='text'>
the SSL case, it is no different from the old _fetch_write(), but in the
non-SSL case it uses writev(2) to send the entire vector as a single
packet (provided it can fit in one packet).  Implement _fetch_write()
and _fetch_putln() in terms of _fetch_writev().

This should improve performance in the non-SSL case (by reducing protocol
overhead) and solve the problem where too-smart-for-their-own-good
firewalls reject FTP packets that do not end in CRLF.

PR:		bin/44123
Submitted by:	fenner
</content>
</entry>
<entry>
<title>Eliminate two cases of undefined behaviour: total in _fetch_write() was</title>
<updated>2002-10-27T15:43:40Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-10-27T15:43:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9f788e9c906554254bd1f32cfefaf244604575d7'/>
<id>urn:sha1:9f788e9c906554254bd1f32cfefaf244604575d7</id>
<content type='text'>
not initialized before use, and _http_growbuf() did not return a value
on success.

Reported by:	Peter Edwards &lt;pmedwards@eircom.net&gt;
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Back out the previous commit, and fix the bug rather than try to hide its</title>
<updated>2002-10-27T15:08:21Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-10-27T15:08:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e24f60e74fa0fe9a887d605f6d5b6d7a6030e885'/>
<id>urn:sha1:e24f60e74fa0fe9a887d605f6d5b6d7a6030e885</id>
<content type='text'>
symptoms: make timeouts and short transfers fatal, and set errno to an
appropriate value (ETIMEDOUT for a timeout, EPIPE for a short transfer).

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Fix an infinite loop when _fetch_read() can return 0 (if the</title>
<updated>2002-09-20T21:50:57Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-09-20T21:50:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a6756ecc226415c5f8b5de185943adb5f2bc6837'/>
<id>urn:sha1:a6756ecc226415c5f8b5de185943adb5f2bc6837</id>
<content type='text'>
connection is broken), take this into account and return at this
point.
</content>
</entry>
</feed>
