summaryrefslogtreecommitdiffstats
path: root/sys/netinet/libalias/alias_util.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-10-27 15:15:13 +0000
committerdes <des@FreeBSD.org>2002-10-27 15:15:13 +0000
commitc1a42364827f8d2ce4bf20e6dd26748340a78c0a (patch)
treedc64809e151c6bee4963af78c58a7d8562acf9f2 /sys/netinet/libalias/alias_util.c
parentcd8380e0b156cfdccb144d199ab89d1e0758125b (diff)
downloadFreeBSD-src-c1a42364827f8d2ce4bf20e6dd26748340a78c0a.zip
FreeBSD-src-c1a42364827f8d2ce4bf20e6dd26748340a78c0a.tar.gz
Add an ETA timer that kicks in after 30 seconds.
Re-add alarm(2) calls around the calls to fetchStat(3) and fetchXGet(3), since these calls can still time out on DNS lookups or TCP connect(2). Remove the alarm(2) calls in the main loop, since all methods properly handle transfer timeouts (as opposed to connection timeouts). Set the sigalrm flag if a timeout occurs in the main loop. Move the signal: label up a little so we still set the atime and mtime when the transfer times out or is interrupted, so that restarted transfers will work as expected (as long as the file still exists). MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/libalias/alias_util.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud