Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2002 07:15:13 -0800 (PST)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/fetch fetch.c
Message-ID:  <200210271515.g9RFFDJ0007491@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

des         2002/10/27 07:15:13 PST

  Modified files:
    usr.bin/fetch        fetch.c 
  Log:
  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
  
  Revision  Changes    Path
  1.51      +45 -16    src/usr.bin/fetch/fetch.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210271515.g9RFFDJ0007491>