git: 9front

Download patch

ref: d65582bcbd0ae45bc398fc162d7dbfe4de80ad93
parent: a7dee6a01286af2345dd1988a3f4577c8559c363
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Wed Nov 16 17:32:31 EST 2011

webfs: cookie expire debug

--- a/sys/src/cmd/webfs/cookies.c
+++ b/sys/src/cmd/webfs/cookies.c
@@ -244,7 +244,7 @@
 				fprint(2, "cookie %K matches %K\n", &j->c[i], c);
 			if(exactcookiecmp(&j->c[i], c) == 0){
 				if(cookiedebug)
-					fprint(2, "\texactly\n");
+					fprint(2, "exactly!\n");
 				j->c[i].mark = 0;
 				return;
 			}
@@ -337,6 +337,8 @@
 	n = 0;
 	for(i=0; i<jar->nc; i++){
 		if(jar->c[i].expire < now || (exiting && jar->c[i].expire==~0)){
+			if(cookiedebug)
+				fprint(2, "cookie %K expired\n", &jar->c[i]);
 			delcookie(jar, &jar->c[i]);
 			n++;
 		}
--