shithub: misc

ref: bb85d99a02ba60bebcd8509fb1bfec8476ef0047
dir: /9legacy/webfs_increment_max_ctl_message_len.diff/

View raw version
--- sys/src/cmd/webfs/fs.c	Fri Oct  7 06:56:43 2005
+++ /sys/src/cmd/webfs/fs.c	Fri Jul 16 06:33:46 2021
@@ -301,7 +301,8 @@
 
 	case Qrootctl:
 	case Qctl:
-		if(r->ifcall.count >= 1024){
+		/* The max URL length of most web browsers is >= 2048 */ 
+		if(r->ifcall.count >= 2048){
 			respond(r, "ctl message too long");
 			return;
 		}