Searched hist:e9a039c2cbaeefaec0609d85c46304ba7739e472 (Results 1 – 1 of 1) sorted by relevance
/freebsd/usr.bin/fetch/ |
H A D | fetch.c | diff e9a039c2cbaeefaec0609d85c46304ba7739e472 Mon Jul 17 23:49:01 CEST 2000 Dag-Erling Smørgrav <des@FreeBSD.org> Rearrange / rewrite large portions of fetch() to take advantage of new libfetch features (fetchRestartCalls, fetchXGet()).
Since it doesn't make much sense to have m_flag and r_flag set at the same time, and it can actually cause trouble in some cases, die if they're both set.
Set the SA_RESETHAND flag for SIGINT so that when we've caught one, we can kill ourselves with a second SIGINT (thus notifying our parent of our tragic fate) instead of just exiting.
These changes fix several problems that would show up when fetching ports, as well as speeding up HTTP transfers quite a bit (at least for relatively small files).
Most of these changes were prompted by an interaction problem with an HTTP server called SWS-1.0, which exhibited two bugs, the first of which prevented fetch from working around the second (the first was not sending content-type in reply to HEAD requests, the second was sending garbage after the end of the requested file). diff e9a039c2cbaeefaec0609d85c46304ba7739e472 Mon Jul 17 23:49:01 CEST 2000 Dag-Erling Smørgrav <des@FreeBSD.org> Rearrange / rewrite large portions of fetch() to take advantage of new libfetch features (fetchRestartCalls, fetchXGet()).
Since it doesn't make much sense to have m_flag and r_flag set at the same time, and it can actually cause trouble in some cases, die if they're both set.
Set the SA_RESETHAND flag for SIGINT so that when we've caught one, we can kill ourselves with a second SIGINT (thus notifying our parent of our tragic fate) instead of just exiting.
These changes fix several problems that would show up when fetching ports, as well as speeding up HTTP transfers quite a bit (at least for relatively small files).
Most of these changes were prompted by an interaction problem with an HTTP server called SWS-1.0, which exhibited two bugs, the first of which prevented fetch from working around the second (the first was not sending content-type in reply to HEAD requests, the second was sending garbage after the end of the requested file).
|