Allow 1024 and 2048 for LimitClients
There's no reason not to offer ridiculous numbers of clients; only a few static data structures are arrays of this length. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
		
							parent
							
								
									e0edb963fe
								
							
						
					
					
						commit
						8217c29d2d
					
				| 
						 | 
					@ -87,7 +87,7 @@ OF THIS SOFTWARE.
 | 
				
			||||||
#ifndef MAXGPUSCREENS
 | 
					#ifndef MAXGPUSCREENS
 | 
				
			||||||
#define MAXGPUSCREENS	16
 | 
					#define MAXGPUSCREENS	16
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#define MAXCLIENTS	512
 | 
					#define MAXCLIENTS	2048
 | 
				
			||||||
#define LIMITCLIENTS	256     /* Must be a power of 2 and <= MAXCLIENTS */
 | 
					#define LIMITCLIENTS	256     /* Must be a power of 2 and <= MAXCLIENTS */
 | 
				
			||||||
#define MAXEXTENSIONS   128
 | 
					#define MAXEXTENSIONS   128
 | 
				
			||||||
#define MAXFORMATS	8
 | 
					#define MAXFORMATS	8
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -867,8 +867,10 @@ ProcessCommandLine(int argc, char *argv[])
 | 
				
			||||||
		if (LimitClients != 64 &&
 | 
							if (LimitClients != 64 &&
 | 
				
			||||||
		    LimitClients != 128 &&
 | 
							    LimitClients != 128 &&
 | 
				
			||||||
		    LimitClients != 256 &&
 | 
							    LimitClients != 256 &&
 | 
				
			||||||
		    LimitClients != 512) {
 | 
							    LimitClients != 512 &&
 | 
				
			||||||
		    FatalError("maxclients must be one of 64, 128, 256 or 512\n");
 | 
					                    LimitClients != 1024 &&
 | 
				
			||||||
 | 
					                    LimitClients != 2048) {
 | 
				
			||||||
 | 
							    FatalError("maxclients must be one of 64, 128, 256, 512, 1024 or 2048\n");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	    } else
 | 
						    } else
 | 
				
			||||||
		UseMsg();
 | 
							UseMsg();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue