shithub: riscv

Download patch

ref: 660fac829c37e1316716d28f3ebab3af77bcdca1
parent: b12100087ca128904384004202f8d190df005195
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++;
 		}