mirror of
				https://github.com/3proxy/3proxy.git
				synced 2025-11-04 07:42:39 +08:00 
			
		
		
		
	minor logging changes
This commit is contained in:
		
							parent
							
								
									95efeb8a93
								
							
						
					
					
						commit
						e23dd7b746
					
				@ -499,9 +499,9 @@ int MODULEMAINFUNC (int argc, char** argv){
 | 
			
		||||
	for(;;){
 | 
			
		||||
		while((conf.paused == srv.version && srv.childcount >= srv.maxchild)){
 | 
			
		||||
			nlog++;			
 | 
			
		||||
			if(nlog > 5000) {
 | 
			
		||||
			if(!srv.silent && nlog > 5000) {
 | 
			
		||||
				sprintf((char *)buf, "Warning: too many connected clients (%d/%d)", srv.childcount, srv.maxchild);
 | 
			
		||||
				if(!srv.silent)(*srv.logfunc)(&defparam, buf);
 | 
			
		||||
				(*srv.logfunc)(&defparam, buf);
 | 
			
		||||
				nlog = 0;
 | 
			
		||||
			}
 | 
			
		||||
			usleep(SLEEPTIME);
 | 
			
		||||
@ -588,9 +588,9 @@ int MODULEMAINFUNC (int argc, char** argv){
 | 
			
		||||
				}
 | 
			
		||||
#endif
 | 
			
		||||
				nlog++;			
 | 
			
		||||
				if(error || nlog > 5000) {
 | 
			
		||||
				if(!srv.silent && (error || nlog > 5000)) {
 | 
			
		||||
					sprintf((char *)buf, "accept(): %s", strerror(errno));
 | 
			
		||||
					if(!srv.silent)(*srv.logfunc)(&defparam, buf);
 | 
			
		||||
					(*srv.logfunc)(&defparam, buf);
 | 
			
		||||
					nlog = 0;
 | 
			
		||||
				}
 | 
			
		||||
				continue;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user