Skip site navigation (1)Skip section navigation (2)
Date:      22 Apr 1999 19:21:16 -0000
From:      Sergey <serge69@nym.alias.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/11283: fetch http-timeout/timestamp bug
Message-ID:  <19990422192116.31130.qmail@nym.alias.net>

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

>Number:         11283
>Category:       bin
>Synopsis:       fetch http-timeout/timestamp bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 22 12:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Sergey
>Release:        FreeBSD 3.1-RELEASE i386 & FreeBSD-3.1-stable
>Organization:
>Environment:
>Description:

	Timestamp on output file is incorrect when fetch terminates due
	to http timeout (-R -T). This causes re-fetching of the WHOLE file 
	on restart (-r). 

>How-To-Repeat:

	client$ fetch -R -T 5 http://server/x.tgz
	server# killall -stop httpd && sleep 5 && killall -cont httpd
	client$ fetch -R -r http://server/x.tgz
	Fetching .... 0%

>Fix:
--- main.c.org	Thu Feb 25 23:42:00 1999
+++ main.c	Thu Apr 22 22:30:56 1999
@@ -277,6 +277,7 @@
 		fprintf(stderr, "\n"); /* just in case */
 		warnx("%s: interrupted by signal: %s", fs->fs_status, 
 		      sys_signame[error]);
+close:
 		sigdelset(&omask, error);
 		signal(error, SIG_DFL);
 		sigprocmask(SIG_SETMASK, (sigset_t *)&omask, 0);
@@ -286,7 +287,6 @@
 	sigprocmask(SIG_SETMASK, (sigset_t *)&omask, 0);
 	error = fs->fs_retrieve(fs);
 
-close:
 	sigaction(SIGHUP, &oldhup, 0);
 	sigaction(SIGINT, &oldint, 0);
 	sigaction(SIGQUIT, &oldquit, 0);



>Release-Note:
>Audit-Trail:
>Unformatted:
 


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




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