summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch/http.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1998-05-09 20:50:37 +0000
committerwollman <wollman@FreeBSD.org>1998-05-09 20:50:37 +0000
commit845ecc3d6bfe0df4d65bcd77ea634fa6c143583d (patch)
treedb4b4a0e69c2117ee92e986c492de5398d640ef1 /usr.bin/fetch/http.c
parent0bee450feaf8a00c798459b0edd4cd68e44f58df (diff)
downloadFreeBSD-src-845ecc3d6bfe0df4d65bcd77ea634fa6c143583d.zip
FreeBSD-src-845ecc3d6bfe0df4d65bcd77ea634fa6c143583d.tar.gz
Documentation fix: delete references to T/TCP as they are not relevant
to the case in question. (Said case being quite clearly defined by the basic TCP specification, RFC 792.)
Diffstat (limited to 'usr.bin/fetch/http.c')
-rw-r--r--usr.bin/fetch/http.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index 0c87209..7b9cb50 100644
--- a/usr.bin/fetch/http.c
+++ b/usr.bin/fetch/http.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: http.c,v 1.16 1997/11/22 01:00:42 fenner Exp $
+ * $Id: http.c,v 1.17 1998/02/20 05:11:40 jb Exp $
*/
#include <sys/types.h>
@@ -594,11 +594,14 @@ retry:
setup_sigalrm();
alarm(timo);
- /* some hosts do not properly handle T/TCP connections. If
- * sendmsg() is used to establish the connection, the OS may
- * choose to try to use one which could cause the transfer
- * to fail. Doing a connect() first ensures that the OS
- * does not attempt T/TCP.
+ /*
+ * Some hosts do not correctly handle data in SYN segments.
+ * If no connect(2) is done, the TCP stack will send our
+ * initial request as such a segment. fs_use_connect works
+ * around these broken server TCPs by avoiding this case.
+ * It is not the default because we want to exercise this
+ * code path, and in any case the majority of hosts handle
+ * our default correctly.
*/
if (fs->fs_use_connect && (connect(s, (struct sockaddr *)&sin,
sizeof(struct sockaddr_in)) < 0)) {
OpenPOWER on IntegriCloud