shithub: riscv

Download patch

ref: bf8fcab00d89b85bb18a2a8d69b71935f6e72edc
parent: f2a9244e2d5cf7011c07e5a3ea34c1fa032cae5c
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Fri Jul 8 10:39:13 EDT 2011

devip: dont panic when ports get exhausted

--- a/sys/src/9/ip/devip.c
+++ b/sys/src/9/ip/devip.c
@@ -818,12 +818,6 @@
 		}
 	}
 	qunlock(p);
-	/*
-	 * debugging: let's see if we ever get this.
-	 * if we do (and we're a cpu server), we might as well restart
-	 * since we're now unable to service new connections.
-	 */
-	panic("setlport: out of ports");
 	return "no ports available";
 
 chosen:
@@ -1323,9 +1317,6 @@
 			print("Fsprotoclone: garbage collecting Convs\n");
 		if(p->gc != nil && (*p->gc)(p))
 			goto retry;
-		/* debugging: do we ever get here? */
-		if (cpuserver)
-			panic("Fsprotoclone: all conversations in use");
 		return nil;
 	}